Git Product home page Git Product logo

Comments (21)

pgcudahy avatar pgcudahy commented on June 26, 2024 11

Same here

from how2.

VladimirMikulic avatar VladimirMikulic commented on June 26, 2024 10

@josephhyatt @pgcudahy @tomhayes @aranmohyeddin while we wait for the PR to be processed, you can download and install how2 from my Github repo and test it.

git clone https://github.com/VladimirMikulic/how2
sudo npm i -g ./how2

Enjoy 🚀 🚀 🚀

from how2.

VladimirMikulic avatar VladimirMikulic commented on June 26, 2024 3

@PaoloCifariello glad you came back. Next time when you want to go on vacation feel free to message me :)

from how2.

martinstepanek avatar martinstepanek commented on June 26, 2024 2

Same here and because last version is 3 years old, I guess one of the APIs changed.

from how2.

petRUShka avatar petRUShka commented on June 26, 2024 2

@VladimirMikulic, could you please provide release section with downloadable tgz npm package?

Like this one from npm repository: https://registry.npmjs.org/how2/-/how2-1.7.1.tgz

It is needed to create Arch linux PKGBUILD.

from how2.

rnmhdn avatar rnmhdn commented on June 26, 2024 1

@petRUShka Thank you for maintaining the PKGBUILD ;)

from how2.

VladimirMikulic avatar VladimirMikulic commented on June 26, 2024 1

@petRUShka I'll keep it updated, feel free to suggest new features & report bugs.
I fixed the "b" keyboard shortcut for opening a link in the browser.
I could also publish it to the NPM registry, it would be easier to install(and keep it up to date).

from how2.

iamaziz avatar iamaziz commented on June 26, 2024 1

@VladimirMikulic I wanna give you two likes if GitHub allows! Big Thanks 👍🏻

from how2.

PaoloCifariello avatar PaoloCifariello commented on June 26, 2024 1

@VladimirMikulic thanks a lot for suggesting google-it as new package to query Google and obtain results.
I saw you forked google-it to make some small adjustments, but I preferred to keep the "official version" as it seems to be constantly updated.

I just updated how-2 to 1.8.0 on NPM and merged in master the code using the new package.
Thanks to everybody and sorry for this loooong issue.

from how2.

amishPro avatar amishPro commented on June 26, 2024

Same here. No matter what questions it returns "Sorry, I cannot find any reasonable answer for your query." I have installed it with "sudo npm install -g how-2".

from how2.

tomhayes avatar tomhayes commented on June 26, 2024

Same here!

from how2.

rnmhdn avatar rnmhdn commented on June 26, 2024

same here even with the question how2 unzip bz2 which is illustrated in the readme:))
I installed without sudo.

from how2.

LeonAlvarez avatar LeonAlvarez commented on June 26, 2024

still broken

from how2.

PaoloCifariello avatar PaoloCifariello commented on June 26, 2024

Hi guys and thank you for letting me know about this.

I immediately thought that this was caused by https://github.com/jprichardson/node-google.
I discovered that the library successfully retrieves an HTML containing the results, but unfortunately something changed in the response format, hence results are no more correctly parsed (this should be the broken line https://github.com/jprichardson/node-google/blob/master/lib/google.js#L68)

To fix this I should probably play a bit with cheerio and the produced HTML to see if I can extract results, changing the old div.g, which is apparently no more a valid selector.

My idea would be to also include that single-file-library (which is apparently not supported anymore) in this project and, eventually, switch from requests to axios to have Promise support in addition to this fix.

Feel free to help on this if you want/can.

from how2.

tomhayes avatar tomhayes commented on June 26, 2024

from how2.

VladimirMikulic avatar VladimirMikulic commented on June 26, 2024

I immediately thought that this was caused by https://github.com/jprichardson/node-google.
I discovered that the library successfully retrieves an HTML containing the results, but unfortunately something changed in the response format, hence results are no more correctly parsed (this should be the broken line https://github.com/jprichardson/node-google/blob/master/lib/google.js#L68)

To fix this I should probably play a bit with cheerio and the produced HTML to see if I can extract results, changing the old div.g, which is apparently no more a valid selector.

I've noticed that also, but since I discovered a new library that is maintained, I decided to modify it a bit to suit our needs and removed the old one.

My idea would be to also include that single-file-library (which is apparently not supported anymore) in this project and, eventually, switch from requests to axios to have Promise support in addition to this fix.

I can do it in the next PR 😄

from how2.

VladimirMikulic avatar VladimirMikulic commented on June 26, 2024

@petRUShka as you wished, I added a release section. Good luck with Arch BTW :)

from how2.

petRUShka avatar petRUShka commented on June 26, 2024

@VladimirMikulic, thanks!

from how2.

petRUShka avatar petRUShka commented on June 26, 2024

@aranmohyeddin, @VladimirMikulic, how2 package uses @VladimirMikulic fork right now.

from how2.

svscorp avatar svscorp commented on June 26, 2024

Hi @PaoloCifriello,

Thank you for returning on that. Not sure it is related to the latest fix, but strangely after update query like "how2 fly to the moon" return error. Maybe it should resolve it that way for these non-it related queries.

from how2.

rowan-schaefer avatar rowan-schaefer commented on June 26, 2024

I am now getting this error, after the AI bit has been added. Never had it back when it was only stackoverflow.

"Sorry, I cannot find any reasonable answer for your query." Has anyone else encountered this after the update?

from how2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.