LoginSignup
1
0

More than 5 years have passed since last update.

seleniumで連番のページに普段使用しているfirefoxのプロファイルでアクセス

Last updated at Posted at 2018-05-19
  • python3
  • selenium (apt install firefoxdriver python3-selenium)
  • firefox + geckodriver
a.py
from selenium import webdriver
fp = webdriver.FirefoxProfile('/home/user1/.mozilla/firefox/zaxxxxxt.default')
browser = webdriver.Firefox(fp)

for i in range(500000):
   browser.get('https://どこかのページ/member/'+str(i)+'/')
   print (i)

browser.quit()
実行
python3 a.py
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0