Skip to content

Commit

Permalink
v2.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
congyewang committed Jul 23, 2019
1 parent 6dabf3c commit 38e873d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions data.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ def main():
break
except Exception as e:
time.sleep(5)
print("\n" + e + "\n" + "#" * 20 +
f" Retry {r + 1} " + "#" * 20 + "\n")
print("\n")
print(e)
print("\n" + "#" * 20 + f" Retry {r + 1} " + "#" * 20 + "\n")
try:
with open('Sum.txt', 'a+') as f:
for i in range(len(title)):
Expand Down
1 change: 0 additions & 1 deletion toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def get_url(self) -> list:
self.url,
headers=self.headers,
timeout=500)
# print(r.text)
html = etree.HTML(r.text)
data_id = html.xpath(path)
tit = html.xpath(title)
Expand Down

0 comments on commit 38e873d

Please sign in to comment.