syntax_fix

This commit is contained in:
ahmed531998 2023-04-15 16:29:38 +02:00
parent 2b7c65d83d
commit 0a8c9bbe7d
1 changed files with 2 additions and 2 deletions

4
VRE.py
View File

@ -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: