M
Martin Kaspar
Hello dear Community,.
I am trying to get a scraper up and running: And keep running into
problems.
when I try what you have i have learnedd so far I only get:
<strong>Schuldaten</strong>
Here is the code that I used:
import urllib2
from BeautifulSoup import BeautifulSoup
page = urllib2.urlopen("http://www.schulministerium.nrw.de/BP/
SchuleSuchen?action=799.601437941842&SchulAdresseMapDO=142323")
soup = BeautifulSoup(page)
table = soup.find('table' ,attrs={'class':'bp_ergebnis_tab_info'})
first_td = soup.find('td')
text = first_td.renderContents()
trimmed_text = text.strip()
print trimmed_text
i run it in the template at http://scraperwiki.com/scrapers/new/python
see the target: http://www.schulministerium.nrw.de/BP/SchuleSuchen?action=799.601437941842&SchulAdresseMapDO=142323
What have I gotten wrong?
Can anybody review the code -
many thanks in Advance
regards
matze
I am trying to get a scraper up and running: And keep running into
problems.
when I try what you have i have learnedd so far I only get:
<strong>Schuldaten</strong>
Here is the code that I used:
import urllib2
from BeautifulSoup import BeautifulSoup
page = urllib2.urlopen("http://www.schulministerium.nrw.de/BP/
SchuleSuchen?action=799.601437941842&SchulAdresseMapDO=142323")
soup = BeautifulSoup(page)
table = soup.find('table' ,attrs={'class':'bp_ergebnis_tab_info'})
first_td = soup.find('td')
text = first_td.renderContents()
trimmed_text = text.strip()
print trimmed_text
i run it in the template at http://scraperwiki.com/scrapers/new/python
see the target: http://www.schulministerium.nrw.de/BP/SchuleSuchen?action=799.601437941842&SchulAdresseMapDO=142323
What have I gotten wrong?
Can anybody review the code -
many thanks in Advance
regards
matze