rtest.py 323 B

1234567891011
  1. import requests
  2. from selenium import webdriver
  3. driver = webdriver.PhantomJS()
  4. driver.get('https://data.similarweb.com/api/v1/data?domain=yahoo.com.tw')
  5. cnt=driver.page_source
  6. print(cnt)
  7. driver.quit()
  8. #r = requests.get('https://data.similarweb.com/api/v1/data?domain=yahoo.com.tw')
  9. #print(r.content)
  10. #js=r.json()
  11. #print(js)