How to get final URL after redirection

2013-10-31 Thread nishant bhakta
I have a link that will redirect to any-other link and i have to work with that 
final link.
For example if i have a link "www.bit.ly/2V6CFi" that will redirect to 
"www.google.com".
Here i want that i take "www.bit.ly/2V6CFi" and find the final redirect link 
and append "#q=python" to that link and produce an output that is 
"www.google.com/#q=python".
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to get final URL after redirection

2013-10-31 Thread nishant bhakta
> There is a python module for interacting with it:
> 
> https://github.com/bitly/bitly-api-python
> 
> 
> 
> Bye, Andreas

I was only giving an example as bitly, actually i need to proceed with 
"http://www.mysmartprice.com/out/sendtostore.php?id=107120529&top_category=electronics&store=amazon&mspid=51889&category=computer&rk=30";
 this is the link that landed at "www.amazong.com" and i want write code that 
take this link and append something to the final landing link that is 
"www.amazon.com"
-- 
https://mail.python.org/mailman/listinfo/python-list