SSujitX / google-news-url-decoder

A Python script to decode Google News article URLs.
MIT License
57 stars 3 forks source link

Unable to decode #4

Closed ruthvik92 closed 1 month ago

ruthvik92 commented 1 month ago

Hi, I can't seem to decode this link: I see that you're looking for articles in the decode script.

news.google.com/read/CBMigwFBVV95cUxNSTdJdTY3SnlJSDJkLVNQN2NWZzVId3lJQzl4Q194OVJUcVB5Snlwa1dVUmpXaEYzbGdiZVBlVmRvdVEtcVM1c3JCYW95QXRxc1pGRzhYcTJ4S2k1bGxwY19TYS0tUkxqY2YyaE5PMHlUMV9Na3VHWmdoVHpPQWtnb1hfMA?hl=en-US&gl=US&ceid=US%3Aen

SSujitX commented 1 month ago

@ruthvik92

change this to news.google.com/read > https://news.google.com/rss/articles/ so link will be - https://news.google.com/rss/articles/CBMigwFBVV95cUxNSTdJdTY3SnlJSDJkLVNQN2NWZzVId3lJQzl4Q194OVJUcVB5Snlwa1dVUmpXaEYzbGdiZVBlVmRvdVEtcVM1c3JCYW95QXRxc1pGRzhYcTJ4S2k1bGxwY19TYS0tUkxqY2YyaE5PMHlUMV9Na3VHWmdoVHpPQWtnb1hfMA

ruthvik92 commented 1 month ago

Thank you! Your v2 script worked to decode.. Not sure why the V1 didn't work. Any idea why suddenly the redirected_url -> url changed ? We used Google News for a scraper and it just stopped working last week. Because of this change.. Your v2 script is looking hopeful for me. I am not experienced in Web Dev... sorry for the long comment on a closed issue. But I am looking forward for your comment.