Python - Urllib2 Wait for page to load to scrape data

后端 未结 1 1681
攒了一身酷
攒了一身酷 2021-01-24 03:56

Firstly, I\'d like to say that I do not want to use any libraries that are not provided with Python 2.7.10. The same question was posted on Stack Overflow but was answered with

相关标签:
1条回答
  • 2021-01-24 04:40

    This will wait 10 seconds before it reads it:

    import urllib2
    import time
    url = 'Roblox url'
    data = urllib2.urlopen(url)
    time.sleep(10)
    data = data.read()
    
    0 讨论(0)
提交回复
热议问题