Skip to content

Commit

Permalink
fix: scrape pages should come with headers (#2)
Browse files Browse the repository at this point in the history
* second page request should with headers

* release
  • Loading branch information
sinkaroid authored Feb 11, 2023
1 parent 8defaf0 commit f469f55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jigoku/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.2.1"
__version__ = "2.2.2"
from .app import main
from .utils.log import log_data, log_time, get_hostname
from .utils.disk import get_size, clean_html
Expand Down
2 changes: 1 addition & 1 deletion jigoku/utils/scrape_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def download_from_multiple_pages(file: str, select_type: str) -> None:
image_small = galeri

else:
res = requests.get(galeri)
res = requests.get(galeri, headers=jgx.with_headers)
soup = BeautifulSoup(res.text, "html.parser")

if (
Expand Down

0 comments on commit f469f55

Please sign in to comment.