add user object
This commit is contained in:
parent
933e178ce5
commit
c04c030540
@ -61,7 +61,7 @@ def scrape_thread (url):
|
||||
thread = Thread(title=d("h2").text())
|
||||
for post_entry in d("article.post-entry"):
|
||||
thread.children.append(Post(
|
||||
author=pq(post_entry)("header > p > a").text(),
|
||||
author=User(name=pq(post_entry)("header > p > a").text()),
|
||||
body=pq(post_entry)(".post-content-container").text()
|
||||
))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user