Skip to content

Commit

Permalink
added proxy param
Browse files Browse the repository at this point in the history
  • Loading branch information
m.semenov committed Oct 28, 2020
1 parent d2d745e commit 12d3458
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions opengrapher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def _parse_tag(soup, tag):
return elem["content"]


def parse(url, parse_tags=PARSE_TAGS):
r = requests.get(url)
def parse(url, parse_tags=PARSE_TAGS, proxies=None):
r = requests.get(url, proxies=proxies)
if not r.ok:
raise BadResponse(r.status_code)
if not r.content:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
setup(
name="opengrapher",
packages=["opengrapher"],
version="0.2",
version="0.2.2",
description="Utility for parsing the OpenGraph tags",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 12d3458

Please sign in to comment.