Commit 9d1c2ae1 authored by andytnt's avatar andytnt

Modify feed.py

parent 3d28dae6
......@@ -33,7 +33,7 @@ def profile(response):
json_response = loads(response)
html = json_response["items_html"]
soup = BeautifulSoup(html, "html.parser")
feed = soup.find_all("li", "js-stream-item")
feed = soup.find_all("div", "tweet")
return feed, feed[-1]["data-item-id"]
......@@ -42,5 +42,5 @@ def Json(response):
json_response = loads(response)
html = json_response["items_html"]
soup = BeautifulSoup(html, "html.parser")
feed = soup.find_all("li", "js-stream-item")
feed = soup.find_all("div", "tweet")
return feed, json_response["min_position"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment