Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#7] [Backend] As a User, I can query a single keyword and get its Google search results parsed #39

Merged
merged 80 commits into from Jul 1, 2021

Conversation

malparty
Copy link
Owner

@malparty malparty commented Jun 18, 2021

What happened

Parse the HTML content from previously done search queries.

Insight

  • Open rails console
  • Create a search (from previous PR feature): result = GoogleService::ClientService.new('YOUR KEYWORD').query_result; nil (note the final ; nil is just here to avoid getting the html result in console output)
  • Finally parse the search with parsed = GoogleService::ParserService.new(result); nil
  • Now you can check all the parsed fields from parsed variable: ads_top_count, ads_page_count, ads_top_url, ads_page_url, non_ads_result_count, total_link_count

Proof Of Work

Keyword used: vpn
image

Keyword used: squarespace

image

@malparty malparty added $keywords-query-single Query a single keyword at a given time @0.2.0 First usable release. @0.3.0 v0.3.0 third week release Feature Backend priority: normal labels Jun 18, 2021
@malparty malparty added this to the 0.2.0 milestone Jun 18, 2021
@malparty malparty self-assigned this Jun 18, 2021
@malparty malparty added this to In development in Product backlog via automation Jun 18, 2021

# Write parsed data directly in the keyword object argument
# and return back the keyword object
def parse_into!(keyword)
Copy link

@github-actions github-actions bot Jun 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Has missing safe method 'parse_into!'


# Write parsed data directly in the keyword object argument
# and return back the keyword object
def parse_into!(keyword)
Copy link

@github-actions github-actions bot Jun 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Has approx 8 statements

@github-actions
Copy link

github-actions bot commented Jun 22, 2021

4 Warnings
⚠️ spec/support/vcr.rb#L46 - Has approx 8 statements
⚠️ spec/support/vcr.rb#L47 - Refers to 'vcr_options' more than self (maybe move it to another class?)
⚠️ spec/support/vcr.rb#L48 - Refers to 'vcr_options' more than self (maybe move it to another class?)
⚠️ spec/support/vcr.rb#L49 - Refers to 'vcr_options' more than self (maybe move it to another class?)

Generated by 🚫 Danger

@malparty malparty force-pushed the feature/google-search-parsed branch from e3d0729 to 1b0bfbb Compare June 23, 2021 01:52
@malparty malparty force-pushed the feature/google-search-parsed branch from 41fea83 to 8cb43a3 Compare June 23, 2021 10:10
@malparty malparty moved this from In development to In code review in Product backlog Jun 23, 2021
@malparty malparty modified the milestones: 0.2.0, 0.3.0 Jun 23, 2021
@malparty malparty changed the title WIP - [#7] [Backend] As a User, I can query a single keyword and get its Google search results parsed [#7] [Backend] As a User, I can query a single keyword and get its Google search results parsed Jun 24, 2021
Base automatically changed from feature/google-search-raw to develop June 24, 2021 07:20
@malparty malparty modified the milestones: 0.3.0, 0.4.0 Jun 28, 2021
@malparty malparty force-pushed the feature/google-search-parsed branch from 2b1abae to eb09e27 Compare June 28, 2021 09:49
@malparty malparty force-pushed the feature/google-search-parsed branch from bdf9804 to e0a42da Compare June 30, 2021 06:56
Product backlog automation moved this from In code review to Ready for QA Jun 30, 2021
@malparty malparty merged commit f5fbcf6 into develop Jul 1, 2021
@malparty malparty deleted the feature/google-search-parsed branch July 1, 2021 02:10
@malparty malparty mentioned this pull request Jul 1, 2021
@malparty malparty moved this from Ready for QA to Completed in Product backlog Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Feature $keywords-query-single Query a single keyword at a given time priority: normal @0.2.0 First usable release. @0.3.0 v0.3.0 third week release
Projects
Development

Successfully merging this pull request may close these issues.

[Backend] As a User, I can query a single keyword and get its Google search results parsed
3 participants