程序化关注 在同一窗口打开

 

 

for tof in tofollow_uid_list:
print(tof)
js = 'window.location.href="https://www.toutiao.com/c/user/{}/"'.format(tof)
browser.execute_script(js)
time.sleep(random.randint(30, 60))
not_followed = 'tab=following'
if not_followed in browser.page_source:


 
posted @ 2018-01-17 12:25  papering  阅读(174)  评论(0编辑  收藏  举报