Comments (21)
Same here
from how2.
@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.
@PaoloCifariello glad you came back. Next time when you want to go on vacation feel free to message me :)
from how2.
Same here and because last version is 3 years old, I guess one of the APIs changed.
from how2.
@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.
@petRUShka Thank you for maintaining the PKGBUILD ;)
from how2.
@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.
@VladimirMikulic I wanna give you two likes if GitHub allows! Big Thanks 👍🏻
from how2.
@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.
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.
Same here!
from how2.
same here even with the question how2 unzip bz2
which is illustrated in the readme:))
I installed without sudo.
from how2.
still broken
from how2.
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.
from how2.
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 olddiv.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
toaxios
to havePromise
support in addition to this fix.
I can do it in the next PR 😄
from how2.
@petRUShka as you wished, I added a release section. Good luck with Arch BTW :)
from how2.
@VladimirMikulic, thanks!
from how2.
@aranmohyeddin, @VladimirMikulic, how2
package uses @VladimirMikulic fork right now.
from how2.
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.
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)
- Ver depois
- Clarify npm package
- [Feature request] Any other way of installing how2 without npm? HOT 2
- [Windows] Crash after pressing space
- Explain how it works on README.md
- Sorry, I cannot find any reasonable answer for your query HOT 1
- Result title is undefined?
- error ,not connect HOT 1
- SO search completely broken (deliberately?) HOT 2
- TypeError: Cannot read property 'prototype' of undefined HOT 1
- Problem in Using! HOT 1
- Type Error: Cannot read property 'prototype' of undefined HOT 2
- Sublime or Alfred plugin?
- Error: Cannot read property 'prototype' of undefined. HOT 2
- Unexpected token function when trying to launch how2 HOT 1
- OSX problem TypeError: Cannot read property 'prototype' of undefined HOT 2
- "ETIMEDOUT" error logged to console when pressing space for more choices
- SyntaxError: Unexpected token function HOT 4
- Query error with mongodb HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from how2.