syntax_fix
This commit is contained in:
parent
2b7c65d83d
commit
0a8c9bbe7d
4
VRE.py
4
VRE.py
|
@ -125,7 +125,7 @@ class VRE:
|
|||
h = html2text.HTML2Text()
|
||||
h.ignore_links = True
|
||||
#posts
|
||||
posts = requests.get(self.socialnetwork_url, headers=headers)
|
||||
posts = requests.get(self.socialnetwork_url, headers=self.headers)
|
||||
posts = posts.json()['result']
|
||||
post_df = pd.DataFrame(columns=['id', 'author', 'content', 'time', 'tags'])
|
||||
|
||||
|
@ -200,7 +200,7 @@ class VRE:
|
|||
h = html2text.HTML2Text()
|
||||
h.ignore_links = True
|
||||
#posts
|
||||
posts = requests.get(self.socialnetwork_url, headers=headers)
|
||||
posts = requests.get(self.socialnetwork_url, headers=self.headers)
|
||||
posts = posts.json()['result']
|
||||
new_posts = []
|
||||
for post in posts:
|
||||
|
|
Loading…
Reference in New Issue