rabbit* Oh. Search.
This commit is contained in:
parent
48d87f336a
commit
f75ff305c1
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class YahooAuctionsItem:
|
|||
r = requests.get(f"https://page.auctions.yahoo.co.jp/jp/auction/{self.id}").text
|
||||
# r = open("yahoo.html").read()
|
||||
j = json.loads(re.match(r'.*var pageData ?= ?(\{.*?\});', r, re.DOTALL).group(1))
|
||||
ae = re.match(r'自動延長.+\n.+>(.+)<.+', r)
|
||||
ae = re.search(r'自動延長.+\n.+>(.+)<.+', r)
|
||||
if ae != None:
|
||||
ae = ae.group(1)
|
||||
self.auto_extension = (ae == "あり")
|
||||
|
|
Loading…
Reference in a new issue