I've been trying to use to the Python Requests module to get the source code for a particular page, and then scrape it for a particular link on it.
Now, I get the source code just fine, however when I try to scrape for the link, it seemed to print the wrong thing. I checked (by printing the text form of the page that I got), and guess what, during the downloading process, the link seems to have changed. Originally, on the site, the link was of the form something.something/5642001/8bc1fa, but now in the page that I got using Requests, it has morphed into something.something/5642001/128a67. Similar, yes, but I cannot figure why this change is occurring.
This is definitely not a case of dynamic js (I think), since when I view page source in the browser itself, the link is just fine: the trouble occurs only when Requests (or urllib for that matter, I tried that too) fetches that page for me.
I would really appreciate some help with working around this.
Image one: The original affected portion of the link, as seen in the page source in my browser. This is correct.
Image two: How the same thing looks like when Requests fetches the whole page for me. Seriously confused.