Re: how to extract page-URL using BeautifulSoup

2013-11-01 Thread Joel Goldstick
This is nearly the same question you asked under another name yesterday. Its not clear what you really want to do. You are asking what the url is of the page you retrieve by providing the same url. On Fri, Nov 1, 2013 at 7:33 AM, Alister wrote: > On Thu, 31 Oct 2013 08:59:00 -0700, bhaktanishan

Re: how to extract page-URL using BeautifulSoup

2013-11-01 Thread Alister
On Thu, 31 Oct 2013 08:59:00 -0700, bhaktanishant wrote: > I want to extract the page-url. for example: > if i have this code > > import urllib2 from bs4 import BeautifulSoup link = > "http://www.google.com"; > page = urllib2.urlopen(link).read() > soup = BeautifulSoup(page) > > then i can extra

Re: how to extract page-URL using BeautifulSoup

2013-10-31 Thread MRAB
On 31/10/2013 15:59, bhaktanish...@gmail.com wrote: I want to extract the page-url. for example: if i have this code import urllib2 from bs4 import BeautifulSoup link = "http://www.google.com"; page = urllib2.urlopen(link).read() soup = BeautifulSoup(page) then i can extract title of page by:

how to extract page-URL using BeautifulSoup

2013-10-31 Thread bhaktanishant
I want to extract the page-url. for example: if i have this code import urllib2 from bs4 import BeautifulSoup link = "http://www.google.com"; page = urllib2.urlopen(link).read() soup = BeautifulSoup(page) then i can extract title of page by: title = soup.title but i want to know that how to ext