Skip to content

Commit

Permalink
fix issue for offensive warning
Browse files Browse the repository at this point in the history
  • Loading branch information
toiletclogger69 authored Jul 24, 2022
1 parent 6f0ae79 commit 65a0226
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eh.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@


def download_gallery(url='', true_if_replace_name=False) -> int:
# ignore warning "offensive content"
if "?nw=always" not in url:
url += "?nw=always"

html_request = requests.get(url, headers=headers)
html_request.raise_for_status()
html_page = BeautifulSoup(html_request.text, 'html.parser')
Expand Down

0 comments on commit 65a0226

Please sign in to comment.