Decode Google News URLs
- Dominant language
- TypeScript
- Stars
- 46.2k
- Forks
- 10.2k
- Avg merge
- 8h 48m
- Merged PRs (30d)
- 175
Description
### Routes
```routes
/google/news/:category/:locale
```
### Full routes
```fullroutes
https://rsshub.app/google/news/Top stories/hl=en-US&gl=US&ceid=US:en
```
### Related documentation
https://docs.rsshub.app/routes/new-media#news-2
### What is expected?
It would be great if the encoded URLs could be returned as the final URLs. So the route would return https://www.foxnews.com/politics/harris-trump-hold-dueling-final-rallies-crucial-blue-wall-battleground instead of the https://news.google.com/read/xxxx URL below.
### What is actually happening?
https://news.google.com/read/CBMipgFBVV95cUxQQVZoMVE4R1VHUG1hYzlFVHFKZ0gwVWRNVm5YT1lGZnJWTEVqdDVJcm44YUhXYS1zYTJmS1QyWnJxaDc2bkd3Q21pYUktbnN4SXM0eXpFNnQxamxMUkN0OE5pbGRiQ1VEX19KcjBNcXhtZXpJZ1p6NXVhRkR5c1A3UnZxZUdrM2xLZ1V1UUpZY3BBbTRHaHNoZ2Z6MXBCYTBBaHN6NVZ30gGrAUFVX3lxTE9nSk8yMHhocVJHT2YwOVZnZldscFlwNXhSbDVpTkUxVDV6Y1BUYy13VHdSOGJVVlNkZTdSTHhvZ1pZZGtZY0N3SE5xanZnd3kwMnBkVThhZ25EQUxzWGtCQ3J5ci1hUUZjQzZULXh5UTZwSGdENG1HWUFxVnNmQVVEajl2ZUMzME82cndtUlVNX1FYMmVwODB3Qk1QVFNCNjFKOUo0TjE2bEtXRQ?hl=en-AU&gl=AU&ceid=AU%3Aen is returned which requires javascript to manage the redirect which most RSS tools don't have.
### Deployment information
RSSHub demo (https://rsshub.app)
### Deployment information (for self-hosted)
_No response_
### Additional info
```shell
https://github.com/SSujitX/google-news-url-decoder/blob/main/googlenewsdecoder/new_decoderv1.py shows how to decode the URL
```
### This is not a duplicated issue
- [X] I have searched [existing issues](https://github.com/DIYgod/RSSHub/issues) to ensure this bug has not already been reported
Contributor guide
Assessment
This issue has not been assessed yet.