Skip to content

Commit

Permalink
Only use zenrows if api is set
Browse files Browse the repository at this point in the history
  • Loading branch information
luuktimmermans authored Nov 20, 2023
1 parent 005f541 commit 5e93ed4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion podimo/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def generateHeaders(self, authorization):
return gHdrs(authorization, self.locale)

async def post(self, headers, query, variables, scraper):
scraper = ZenRowsClient(ZENROWS_API)
if ZENROWS_API is not None:
scraper = ZenRowsClient(ZENROWS_API)
response = await async_wrap(scraper.post)(GRAPHQL_URL,
headers=headers,
cookies=self.cookie_jar,
Expand Down

0 comments on commit 5e93ed4

Please sign in to comment.