Skip to content

Commit

Permalink
Fixed Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhan Ahmed committed Jul 19, 2023
1 parent 895b544 commit e51cb58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions GoogleAds/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, region="anywhere", proxy=None):
self.headers = HEADERS
#proxy config
self.proxy = proxy
if proxy is not None or not proxy:
if not proxy:
self.reqs.proxies.update(proxy)

self.r_check = True
Expand All @@ -63,7 +63,7 @@ def refresh_session(self, proxy=None):
"""Refresh Session cookies"""
self.reqs = requests.Session()
self.get_cookies()
if proxy is not None or not proxy:
if not proxy:
self.proxy = proxy
self.reqs.proxies.update(self.proxy)

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
author_email="[email protected]",
url="https://github.com/faniAhmed/GoogleAdsTransparencyScraper",
description="A scraper for getting Ads from Google Ads Transparency",
version="1.5.4",
version="1.5.5",
packages=find_packages(),
download_url= 'https://github.com/faniAhmed/GoogleAdsTransparencyScraper/archive/refs/tags/v1.5.4.tar.gz',
download_url= 'https://github.com/faniAhmed/GoogleAdsTransparencyScraper/archive/refs/tags/v1.5.5.tar.gz',
keywords= ['Google', 'Transparency', 'Scraper', 'API', 'Google Ads', 'Ads', 'Google Transparency', 'Google Transparency Scraper', 'Google Ads Scraper'],
license='Securely Incorporation',
install_requires=[
Expand Down

0 comments on commit e51cb58

Please sign in to comment.