Readebble icon indicating copy to clipboard operation
Readebble copied to clipboard

Parse URL from Google Alerts when adding to Pocket

Open ydyu opened this issue 9 years ago • 0 comments

When using Google Alerts RSS feed (https://www.google.com/alerts), the URL comes in the form https://www.google.com/url?..... With the actual article URL hidden behind a query string parameter &url=....

Example: https://www.google.com/url?rct=j&sa=t&url=http://www.northjersey.com/travel/time-has-come-to-put-the-world-on-my-wrist-1.1530569&ct=ga&cd=CAIyGmJkMjAzMGQ4YzZkZTU3ZTI6Y29tOmVuOlVT&usg=AFQjCNH_Wh14Ry3_deWwz_dfwQlNPSDsQw

Actual URL from example: http://www.northjersey.com/travel/time-has-come-to-put-the-world-on-my-wrist-1.1530569

Adding such URL to pocket directly will result in Pocket not recognizing the article title. Parsing url= from query string and adding the resulting URL to Pocket solves that problem.

ydyu avatar Mar 20 '16 07:03 ydyu