stop at the end
This commit is contained in:
parent
9845e9068e
commit
aaa35f20c2
1 changed files with 6 additions and 3 deletions
|
@ -170,9 +170,12 @@ while True:
|
||||||
print('getting next page')
|
print('getting next page')
|
||||||
r = user.session.get(f'https://help.steampowered.com/en/accountdata/AjaxLoadMoreData/?url=GetFriendMessagesLog&continue={continue_value}')
|
r = user.session.get(f'https://help.steampowered.com/en/accountdata/AjaxLoadMoreData/?url=GetFriendMessagesLog&continue={continue_value}')
|
||||||
continue_value = r.json()['continue']
|
continue_value = r.json()['continue']
|
||||||
html = r.json()['html']
|
if continue_value:
|
||||||
trs = BeautifulSoup(html, 'html.parser').find_all('tr')
|
html = r.json()['html']
|
||||||
parse_trs(trs)
|
trs = BeautifulSoup(html, 'html.parser').find_all('tr')
|
||||||
|
parse_trs(trs)
|
||||||
|
else:
|
||||||
|
break
|
||||||
|
|
||||||
# CLOSE
|
# CLOSE
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue