摘要: import requests import re # 一:先获取登陆页面,拿到authenticity_token: # 1 请求的url:https://github.com/login # 2 请求方法:GET # 3 请求头: # User-Agent r1 = requests.get('https://github.com/login', ... 阅读全文
posted @ 2018-01-15 22:03 一石数字欠我15w!!! 阅读(1583) 评论(0) 推荐(0)
摘要: # -*- coding: utf-8 -*- import requests from urllib.parse import urlencode # python模仿百度搜索引擎 # keyword = input(">>:").strip() # res = urlencode({"wd": keyword}, encoding="utf-8") # url = "https://www... 阅读全文
posted @ 2018-01-15 22:01 一石数字欠我15w!!! 阅读(617) 评论(0) 推荐(0)
摘要: # 简易版爬取校花网视频import requests import re import hashlib import time movie_path = "C:\mp4" #视频存储目录 def get_page(url): ''' 返回一个字符串的网页页面 :param url: :return: ''' try: ... 阅读全文
posted @ 2018-01-15 21:13 一石数字欠我15w!!! 阅读(2099) 评论(2) 推荐(0)