Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Stopped working? #372

Closed
097115 opened this issue Oct 1, 2020 · 7 comments · Fixed by #373
Closed

Stopped working? #372

097115 opened this issue Oct 1, 2020 · 7 comments · Fixed by #373

Comments

@097115
Copy link

097115 commented Oct 1, 2020

  • Output of googler -d:
[DEBUG] googler version 4.2
[DEBUG] Python version 3.7.4
[DEBUG] Platform: Darwin-15.6.0-x86_64-i386-64bit
[DEBUG] Connecting to new host www.google.com
[DEBUG] Opened socket to 216.58.215.68:443
[DEBUG] Fetching URL /search?ie=UTF-8&oe=UTF-8&q=test&sei=YhfWbCYXQL2KPfSS1sfGbA
[DEBUG] Cookie: CGIC=Igl0ZXh0L2h0bWw
[DEBUG] Response body written to '/var/folders/fm/flpqjgss1mz5hhs92sj_6fm40000gn/T/googler-response-h3lbic2q.html'.
No results.
If you believe this is a bug, please review https://git.io/googler-no-results before submitting a bug report.
  • Link to the response body:

https://gist.github.com/097115/821c10653b18cc83d333329ab8371e9c

  • Details of operating system, Python version used:

Both Ubuntu and macOS, both python 3.5.2 and 3.7.4. Worked just a few hours ago, and now suddenly returns no results (both 4.2 and the latest master).

@hooksoft
Copy link

hooksoft commented Oct 1, 2020

Same, first time using this tool a few minutes ago.

@jarun
Copy link
Owner

jarun commented Oct 1, 2020

Looks like it. Attached the response for @zmwangx to take a look.

googler-response-ncqronkq.zip

@strazto
Copy link

strazto commented Oct 2, 2020

Weirdly enough, for me- the following works:

googler --debug aaaa
[DEBUG] googler version 4.2
[DEBUG] Python version 3.8.5
[DEBUG] Platform: Linux-5.4.0-48-generic-x86_64-with-glibc2.2.5
[DEBUG] Connecting to new host www.google.com
[DEBUG] Opened socket to 172.217.167.100:443
[DEBUG] Fetching URL /search?ie=UTF-8&oe=UTF-8&q=aaaa&sei=Dz1GrARhEeu1_XCFwrImsQ
[DEBUG] Cookie: 1P_JAR=2020-10-02-03
[DEBUG] Response body written to '/tmp/googler-response-oqc8_miv.html'.

 1.  Contact Us
     https://www.aaaa.com.au/contact-us/
     Contact Us. National Office 7-8 Bastow Place Mulgrave, Victoria ...

     1a. Contact Us
         https://www.aaaa.com.au/contact-us/
         Contact Us. National Office 7-8 Bastow Place Mulgrave, Victoria ...

     1b. Join AAAA
         https://www.aaaa.com.au/join-aaaa/
         Join Today! Complete your online membership application here.

     1c. About
         https://www.aaaa.com.au/about/
         AAAA membership is designed to reduce the cost and time of ...

     1d. Member Benefits
         https://www.aaaa.com.au/about/member-benefits/
         Industry Legal. AAAA members can access the FREE Industry ...

     1e. Member Login
         https://www.aaaa.com.au/member-login/
         Member Login. This section allows members to pay AAAA invoices ...

     1f. AAAA News
         https://www.aaaa.com.au/category/news/aaaa-news/
         The Latest AAAA news related to the Automotive Aftermarket.

googler-aaaa.html.txt

But the following doesn't:

googler --debug hi
[DEBUG] googler version 4.2
[DEBUG] Python version 3.8.5
[DEBUG] Platform: Linux-5.4.0-48-generic-x86_64-with-glibc2.2.5
[DEBUG] Connecting to new host www.google.com
[DEBUG] Opened socket to 172.217.25.132:443
[DEBUG] Fetching URL /search?ie=UTF-8&oe=UTF-8&q=hi&sei=QVG23ARhEeu73XCFwrImsQ
[DEBUG] Cookie: 1P_JAR=2020-10-02-03
[DEBUG] Response body written to '/tmp/googler-response-q2tqa5oy.html'.
No results.
If you believe this is a bug, please review https://git.io/googler-no-results before submitting a bug report

googler-hi.html.txt

@shorewall
Copy link

same for me. Worked up to yesterday.
root@localhost ~]# googler --debug linux
[DEBUG] googler version 4.2
[DEBUG] Python version 3.5.7
[DEBUG] Platform: Linux-4.14.145-desktop-2.mga6-x86_64-with-mageia-6-Official
[DEBUG] Connecting to new host www.google.com
[DEBUG] Opened socket to 216.58.209.36:443
[DEBUG] Fetching URL /search?ie=UTF-8&oe=UTF-8&q=linux&sei=e0Gf1yazROinWwapOGtJ0Q
[DEBUG] Cookie: CGIC=Igl0ZXh0L2h0bWw
[DEBUG] Response body written to '/tmp/googler-response-et7jy_xt.html'.
No results.
If you believe this is a bug, please review https://git.io/googler-no-results before submitting a bug report.

zmwangx added a commit to zmwangx/googler that referenced this issue Oct 3, 2020
Fixes jarun#372, hopefully.

Old parser is kept just in case the new strucutre isn't served to every domain
/ every UA / every user.

Parser now capable of parsing multiple metadata fields too, e.g. "Released",
"Genre", etc. for songs. Wikipedia search results often have these metadata
fields, it seems. I have chosen " | " as the delimiter in our single-line
output, which is of course debatable.
zmwangx added a commit to zmwangx/googler that referenced this issue Oct 3, 2020
Fixes jarun#372, hopefully.

Old parser is kept just in case the new structure isn't served to every domain
/ every UA / every user.

Parser now capable of parsing multiple metadata fields too, e.g. "Released",
"Genre", etc. for songs. Wikipedia search results often have these metadata
fields, it seems. I have chosen " | " as the delimiter in our single-line
output, which is of course debatable.
@zmwangx zmwangx mentioned this issue Oct 3, 2020
@jarun jarun closed this as completed in #373 Oct 3, 2020
jarun pushed a commit that referenced this issue Oct 3, 2020
* Fix parser for new markup structure

Fixes #372, hopefully.

Old parser is kept just in case the new structure isn't served to every domain
/ every UA / every user.

Parser now capable of parsing multiple metadata fields too, e.g. "Released",
"Genre", etc. for songs. Wikipedia search results often have these metadata
fields, it seems. I have chosen " | " as the delimiter in our single-line
output, which is of course debatable.

* Fix Result.__hash__

Result.__hash__ isn't actually used I believe (just wrote it for
completeness), but still it should be corrected. Caught by Pylance.
@andrewrgarcia
Copy link

thank you jarun. I reinstalled from the git master and now works perfectly again thanks to your fork merge

@raoulalwani
Copy link

@jarun thanks for the quick update to fix.

To any others needing to solve this, I ran: sudo googler -u --include-git and now it's working again. sudo google -u alone did not work, I had to --include-git to get the latest updates from master.

@andrewrgarcia
Copy link

@jarun thanks for the quick update to fix.

To any others needing to solve this, I ran: sudo googler -u --include-git and now it's working again. sudo google -u alone did not work, I had to --include-git to get the latest updates from master.

lol that's basically what I said!!

zmwangx added a commit to zmwangx/googler that referenced this issue Oct 5, 2020
print appropriate messages based on project status along with the "no results"
warning.

Rationale: there have been enough Google-breaks-everything shitstorms, it's
time to introduce a better protocol to reduce user confusion during these
trying periods.

Here's the protocol:

- Once a report is confirmed and proven to be non-transient (e.g. still reproducible after 24 hours), regardlessly of whether a fix can be made available immediately, the epoch in `googler` and `info.json` should be advanced to the date of the report (in UTC), and the issue number recorded. `info.json` should look like:

  ```json
  {
      "epoch": "20201001",
      "tracking_issue": 372,
      "fixed_on_master": false,
      "fixed_in_release": false
  }
  ```

  At this point users would see a message like this:

  ```console
  $ googler hello  # Issue acknowledged, not fixed.
  No results.
  Your version of googler is broken due to Google-side changes.
  The issue is tracked at jarun#372.
  ```

- Once a fix is committed to master, `fixed_on_master` should be set to `true`:

  ```json
  {
      "epoch": "20201001",
      "tracking_issue": 372,
      "fixed_on_master": true,
      "fixed_in_release": false
  }
  ```

  At this point users would see a message like this:

  ```console
  $ googler hello  # Fixed on master, not released.
  No results.
  Your version of googler is broken due to Google-side changes.
  The fix has been pushed to master, pending a release.
  Please download the master version https://git.io/googler or wait for a release.
  ```

- Once the fix is released, `fixed_in_released` should be updated to the version tag:

  ```json
  {
      "epoch": "20201001",
      "tracking_issue": 372,
      "fixed_on_master": true,
      "fixed_in_release": "v4.3"
  }
  ```

  At this point users would see a message like this:

  ```console
  $ googler hello  # Fix released.
  No results.
  Your version of googler is broken due to Google-side changes.
  A new version, v4.3, has been released to address the changes.
  Please upgrade to the latest version.
  ```
zmwangx added a commit to zmwangx/googler that referenced this issue Oct 5, 2020
print appropriate messages based on project status along with the "no results"
warning.

Rationale: there have been enough Google-breaks-everything shitstorms, it's
time to introduce a better protocol to reduce user confusion during these
trying periods.

Here's the protocol:

- Once a report is confirmed and proven to be non-transient (e.g. still reproducible after 24 hours), regardlessly of whether a fix can be made available immediately, the epoch in `googler` and `info.json` should be advanced to the date of the report (in UTC), and the issue number recorded. `info.json` should look like:

  ```json
  {
      "epoch": "20201001",
      "tracking_issue": 372,
      "fixed_on_master": false,
      "fixed_in_release": false
  }
  ```

  At this point users would see a message like this:

  ```console
  $ googler hello  # Issue acknowledged, not fixed.
  No results.
  Your version of googler is broken due to Google-side changes.
  The issue is tracked at jarun#372.
  ```

- Once a fix is committed to master, `fixed_on_master` should be set to `true`:

  ```json
  {
      "epoch": "20201001",
      "tracking_issue": 372,
      "fixed_on_master": true,
      "fixed_in_release": false
  }
  ```

  At this point users would see a message like this:

  ```console
  $ googler hello  # Fixed on master, not released.
  No results.
  Your version of googler is broken due to Google-side changes.
  The fix has been pushed to master, pending a release.
  Please download the master version https://git.io/googler or wait for a release.
  ```

- Once the fix is released, `fixed_in_released` should be updated to the version tag:

  ```json
  {
      "epoch": "20201001",
      "tracking_issue": 372,
      "fixed_on_master": true,
      "fixed_in_release": "v4.3"
  }
  ```

  At this point users would see a message like this:

  ```console
  $ googler hello  # Fix released.
  No results.
  Your version of googler is broken due to Google-side changes.
  A new version, v4.3, has been released to address the changes.
  Please upgrade to the latest version.
  ```
zmwangx added a commit to zmwangx/googler that referenced this issue Oct 5, 2020
print appropriate messages based on project status along with the "no results"
warning.

Rationale: there have been enough Google-breaks-everything shitstorms, it's
time to introduce a better protocol to reduce user confusion during these
trying periods.

Here's the protocol:

- Once a report is confirmed and proven to be non-transient (e.g. still
  reproducible after 24 hours), regardlessly of whether a fix can be made
  available immediately, the epoch in `googler` and `info.json` should be
  advanced to the date of the report (in UTC), and the issue number
  recorded. `info.json` should look like:

  ```json
  {
      "epoch": "20201001",
      "tracking_issue": 372,
      "fixed_on_master": false,
      "fixed_in_release": false
  }
  ```

  At this point users would see a message like this:

  ```console
  $ googler hello  # Issue acknowledged, not fixed.
  No results.
  Your version of googler is broken due to Google-side changes.
  The issue is tracked at jarun#372.
  ```

- Once a fix is committed to master, `fixed_on_master` should be set to `true`:

  ```json
  {
      "epoch": "20201001",
      "tracking_issue": 372,
      "fixed_on_master": true,
      "fixed_in_release": false
  }
  ```

  At this point users would see a message like this:

  ```console
  $ googler hello  # Fixed on master, not released.
  No results.
  Your version of googler is broken due to Google-side changes.
  The fix has been pushed to master, pending a release.
  Please download the master version https://git.io/googler or wait for a release.
  ```

- Once the fix is released, `fixed_in_released` should be updated to the
  version tag:

  ```json
  {
      "epoch": "20201001",
      "tracking_issue": 372,
      "fixed_on_master": true,
      "fixed_in_release": "v4.3"
  }
  ```

  At this point users would see a message like this:

  ```console
  $ googler hello  # Fix released.
  No results.
  Your version of googler is broken due to Google-side changes.
  A new version, v4.3, has been released to address the changes.
  Please upgrade to the latest version.
  ```
@github-actions github-actions bot locked and limited conversation to collaborators Nov 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants