diff --git a/5.py b/5.py new file mode 100644 index 0000000..c5a7d92 --- /dev/null +++ b/5.py @@ -0,0 +1,11 @@ +import requests +improt re + +headers = { + 'User-Agent':'Mozilla/5.0(Windows NT 10.0;Win64; x64)AppleWebKit/537.36' +} +url='http://movie.douban.com/top250' + +response = requests.get(url,headers=headers) +html = response.text +