From 0a8c9bbe7d1943dc7d64740536dd23c7ef0e4ee8 Mon Sep 17 00:00:00 2001 From: ahmed531998 Date: Sat, 15 Apr 2023 16:29:38 +0200 Subject: [PATCH] syntax_fix --- VRE.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VRE.py b/VRE.py index 74caf13..73b5e9e 100644 --- a/VRE.py +++ b/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: