Skip to content

Commit

Permalink
Merge pull request mvdctop#948 from jasonpeng2014/master
Browse files Browse the repository at this point in the history
bypass dmm region check not 404 event.
  • Loading branch information
mvdctop authored Jan 10, 2023
2 parents 68a9cc3 + b3e1448 commit bfcc3d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scrapinglib/fanza.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def search(self, number):
self.detailurl = url + fanza_search_number
url = "https://www.dmm.co.jp/age_check/=/declared=yes/?"+ urlencode({"rurl": self.detailurl})
self.htmlcode = self.getHtml(url)
if "Sorry! This content is not available in your region." in self.htmlcode:
continue
if self.htmlcode != 404:
self.htmltree = etree.HTML(self.htmlcode)
break
Expand Down

0 comments on commit bfcc3d5

Please sign in to comment.