You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Die ist ein bischen ekelhaft: Man muss HTML parsen, geht aber mit BeautifulSoup ziemlich einfach. Siehe folgenden Pseudopythoncode:
soup = BeautifulSoup(json_load(urlopen(url-von-oben))["items_html"])
t = soup.find_all("div", "tweet")[0]
t("a","js-user-profile-link")[0].get("href") == "/ccchb"
t("span","js-action-profile-name")[0].text == "@ccchb"
t("a","js-permalink")[0].get("href") == "/ccchb/status/238015568572186624"
t("img","js-action-profile-avatar")[0].get("src") == "https://si0.twimg.com/profile_images/241356172/CC ... .png"
t("p","js-tweet-text")[0].text.strip() == "Wir haben jetzt die nächste Veranstal ... C #Bremen /sr"
Die Klassennamen lassen imho darauf schließen, dass der Krams vom Twitter-eigenen JavaScript auch ab und zu mal geparst werden muss. Vielleicht ist die Schnittstelle ja sogar einigermaßen stabil? Wer weiß...
The text was updated successfully, but these errors were encountered: