This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding:utf-8 -*- | |
| import urllib, http.cookiejar, requests | |
| import threading | |
| import os,re | |
| def get_page(url,timeout=20): | |
| # 仅返回网页,不做任何操作 | |
| try: | |
| request = urllib.request.Request(url) |