-
-
Notifications
You must be signed in to change notification settings - Fork 534
TODO list #87
Comments
Several ideas, all of which should be almost backwards compatible, but when implemented should be more user-friendly going forward:
|
A bit of clarification on long command names that I forgot to mention: I personally like the type of interfaces where users should be able to enter a partial command as long as it is unambiguous, e.g., We could also give the interactive part of our program an OO interface, reminiscent of |
At this time we don't have any other than filter. I'm good but I think it'll work differently for different for different options. The rest of the ideas are very useful. 👍 |
I mean real options like |
👍 |
Note to self: our URL construction could receive an OO refresh too to make some points above easier and avoid awkward and brittle URL updating code like url = url.replace('start=%d&' % oldstart, 'start=%d&' % start, 1) I'll do this and point 4 in #87 (comment) tonight. |
👍 |
By the way, is "Document APIs in NumPy format [owner @jarun]" considered done? |
Yes, I think we can close it. Most important functions are covered. |
Checked off. Don't want to create an "archive" entry anymore. Just remove checked off items when we roll the thread. |
We can remove the item. |
I think we can leave it checked off. It gives off a sense of accomplishment... And It will disappear the next time we roll the thread anyway, so it won't get in the way for long. |
👍 |
Added (sort of). |
okies :) |
is it possible to make it available to install via pip? |
@jerkovicl No. See #64. |
Adding a setup.py doesn't really mean that you have to upload this to PyPI. It will also allow you to do this: People just want pip because that's what they're comfortable using and I really think you should considering adding support for it. There's also magical things like pipsi. |
Given the utility is a standalone one (given base Python3 is installed), probably it doesn't matter anymore. We have no further plans on this line. |
Except it's overkill and doesn't work with older pip. Moreover, IIRC updating a git head package from within pip is a nightmare. Just do this: https://github.com/jarun/googler#downloading-a-single-file. |
Is there anyway to avoid scrolling to the bottom of the search results? Something like |
Automatic scrolling is done by the terminal emulator, there's nothing we can do about it. We certainly can't bundle a curses TUI. However, if you submit a PR that implements optional piping through a pager, we could review it. A workaround is to set the number of results per page to something suitable to your screen. |
Fair enough. Will look into it. Thanks for the immediate response. |
The workflow remains the same with the pager or limiting the number of results per page. Whether you page through (using |
#109 Doesn't actully fix the following, right?
|
@knkarthik Please be more specific. What are you trying to do that's not possible? |
Sorry. What I meant is googler without arguments still enters the REPL instead of printing usage and exit. I thought #109 fixed this. |
That's the behaviour introduced by #109. Earlier |
I'll add that there are already a good number of popular article/full text/whatever extractors in Python. |
That's what things like RSS and Atom is for. Just ask those popular websites, comment systems, whatever... to implement RSS, so that you can easily access their contents/updates, it is not very difficult to implement. If they make browsing difficult, then they don't probably want you to do that. But if that's the case, then you must boycott them or webscrap their website to regain your freedom. I'd help you if you want to do that for a company that fights against our freedom, such as Google, and if I'd find that useful, or if you are willing to pay me for the job. Fight against DRM. Some anti-DRM websites: |
@jorgesumle This is an entirely out of touch and out of place rant. First, websites have every right to their content, and user-generated content with rights signed away; you'd be a fool to think you should have "freedom" over someone else's work, if they don't grant it to you. Secondly, websites have absolutely zero obligation to make their websites work well in a text-based browser; graceful degradation / progressive enhancement sure is nice, but people need to be payed to do extra work. Thirdly, you're probably misinterpreting DRM (say, in the form of Encrypted Media Extensions); writing badly structured HTML that's hard to parse has nothing to do with DRM. I get that you're probably frustrated by recent developments in DRM on the web, but it has nothing to do with what @aditya3098 requested. So please stop. |
I'll also mention that both MediaWiki and StackExchange have APIs that grant you access to their native markup (Wiki markup and Markdown, respectively). |
This might be far reaching and also sound like I'm nuts. I use Fish shell that gives be CLI auto completion, and sometimes things like |
You'll find the scripts in https://github.com/jarun/googler/tree/master/auto-completion |
oooh. And also if we google "USD45 in GBP" it will convert currencies. Hope we can have this in googler. Even complex calculations is calculated by google. |
@jarun But isn't that just for the options? Does it return search results? |
We decided that's out of scope for googler. See #97. |
Aah, you are looking for |
Search completion API is actually pretty simple:
Those strings of interest, translated to human-readable form, are:
You should be able to parse these with ease, and write a completer based on that. As for myself, I'm afraid I'm not motivated enough to implement this, but it does look like an interesting weekend hack. |
Actually, since this is both simple and interesting, I just went ahead and did it. @piggyslasher If you're a Zsh user, you can go ahead and try the topic branch https://github.com/zmwangx/googler/tree/complete-queries. There's an additional script to install; see notes in https://github.com/zmwangx/googler/tree/complete-queries#shell-completion. I may add bash support later. Anyway, here's a screencast. Pretty cool. @jarun Feel like ever including this feature on master? If so, I'll integrate this into googler itself (put this behind a hidden option, say |
@zmwangx I will check this. Need a few days. Thanks for checking it out! |
You sir, are a star. The both of you actually! Thanks. I use fish, but I’ve
been meaning to go back to zsh. This might just be the right time.
|
@piggyslasher I use fish ;). Care to translate it to fish and submit a PR? |
@jarun Sounds like you approve of this idea? I learned some fish and added support to the same branch: https://github.com/zmwangx/googler/tree/complete-queries. I also integrated the completer into googler itself (a hidden option |
Sure I approve! I am not just finding time to get back to my usual stuff. Killer schedule... but I will be back. Please raise the PR. It's extremely useful. |
Dayum.... This is wicked. Thanks guys. Let me try if it works with the zsh-autosuggestions. That would pretty much make it work like the chrome address bar! |
@jarun was troubleshooting a bash script I was writing, and it's almost the end of the road for me with fish shell sadly. I am giving zsh one more try and so far, I've been pleasantly impressed. Will try to see if I can get live auto completion to work with zsh-autosuggestions. |
selecting index is not opening in browser .. Is there an .googerrc file where I need to define the browser ? Figured it out .. I exported links .. Thanks |
No config file. You can use the env variable BROWSER. What's your browser? Is it set as your system default browser? |
I hope this is the right place to add a feature request...if not I can open a new issue! I'd love a command line option to just return the number of results for a query. For instance:
|
在windows上上面可以安装使用吗 |
how can i user googler on windows paltform ? |
Install Python and invoke googler. Use option |
Rolled at #209. |
Rolling TODO list thread No. 3. Previous thread is #83.
Possible improvements we'd like to see:
Suggestions and PRs welcome!
The text was updated successfully, but these errors were encountered: