Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marado/ungoogle
shell script to "ungoogle" google news links
https://github.com/marado/ungoogle
Last synced: about 2 months ago
JSON representation
shell script to "ungoogle" google news links
- Host: GitHub
- URL: https://github.com/marado/ungoogle
- Owner: marado
- License: gpl-3.0
- Created: 2015-02-27T15:07:40.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-28T00:14:55.000Z (almost 8 years ago)
- Last Synced: 2024-05-01T13:00:07.243Z (8 months ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ungoogle - shell script to "ungoogle" google news links
Imagine you have a "Google News" link, in the format you see on its website
or - worse - on the RSS feed. Something like:http://news.google.com/news/url?sa=t&fd=R&ct2=pt-PT_pt&usg=AFQjCNFjZjhBUXzComaazKhbRHh50N_P_g&clid=c3a7d30bb8a4878e06b80cf16b898331&cid=52779178690885&ei=mYjwVLnyNYK21gatlIHYCg&url=http://www.dn.pt/inicio/tv/interior.aspx?content_id%3D4425605
Ugly, right? Yeah, I think so too, so I wrote a small shell script to transform
it into a "clean link". In the above case:http://www.dn.pt/inicio/tv/interior.aspx?content_id=4425605
## Use
```
$ cat link
http://news.google.com/news/url?sa=t&fd=R&ct2=pt-PT_pt&usg=AFQjCNFjZjhBUXzComaazKhbRHh50N_P_g&clid=c3a7d30bb8a4878e06b80cf16b898331&cid=52779178690885&ei=mYjwVLnyNYK21gatlIHYCg&url=http://www.dn.pt/inicio/tv/interior.aspx?content_id%3D4425605
$ ./ungoogle.sh link
http://www.dn.pt/inicio/tv/interior.aspx?content_id=4425605
$
```## Why?
I wrote this particular script to deal with the results from
[hattai-fortune](https://github.com/marado/hattai-fortune). If you're using
this somewhere else, I'd love to know, drop me a line!