Evtl. könnte man die Zuordnung der Daten noch ein wenig kompakter schreiben:
In [1]: keys = ("Platz", "Mannschaft", "Spiele")
In [3]: col = [1, "b", 42]
In [4]: zip(keys, col)
Out[4]: [('Platz', 1), ('Mannschaft', 'b'), ('Spiele', 42)]
In [5]: dict(zip(keys, col))
Out[5]: {'Mannschaft': 'b ...
Die Suche ergab 6 Treffer
- Donnerstag 12. November 2009, 09:22
- Forum: Netzwerkprogrammierung
- Thema: BeautifulSoup Tabelle auslesen (SIS-Handball)
- Antworten: 18
- Zugriffe: 6645
- Donnerstag 12. November 2009, 08:46
- Forum: Netzwerkprogrammierung
- Thema: BeautifulSoup Tabelle auslesen (SIS-Handball)
- Antworten: 18
- Zugriffe: 6645
- Donnerstag 12. November 2009, 08:12
- Forum: Netzwerkprogrammierung
- Thema: BeautifulSoup Tabelle auslesen (SIS-Handball)
- Antworten: 18
- Zugriffe: 6645
- Mittwoch 11. November 2009, 19:41
- Forum: Netzwerkprogrammierung
- Thema: BeautifulSoup Tabelle auslesen (SIS-Handball)
- Antworten: 18
- Zugriffe: 6645
- Mittwoch 11. November 2009, 17:08
- Forum: Netzwerkprogrammierung
- Thema: BeautifulSoup Tabelle auslesen (SIS-Handball)
- Antworten: 18
- Zugriffe: 6645
- Mittwoch 11. November 2009, 13:31
- Forum: Netzwerkprogrammierung
- Thema: BeautifulSoup Tabelle auslesen (SIS-Handball)
- Antworten: 18
- Zugriffe: 6645
BeautifulSoup Tabelle auslesen (SIS-Handball)
Hallo Leute,
ich versuche mit Python und BeautifulSoup eine Tabelle automatisch auszulesen.
Ich bin soweit, dass ich die Tabelle ausgewählt habe, die ich suche:
import urllib2
from BeautifulSoup import BeautifulSoup
soup = BeautifulSoup(urllib2.urlopen(' URL ').read())
tables = soup.findAll ...
ich versuche mit Python und BeautifulSoup eine Tabelle automatisch auszulesen.
Ich bin soweit, dass ich die Tabelle ausgewählt habe, die ich suche:
import urllib2
from BeautifulSoup import BeautifulSoup
soup = BeautifulSoup(urllib2.urlopen(' URL ').read())
tables = soup.findAll ...