
crawler
fireflylane
这个作者很懒,什么都没留下…
展开
-
beautifulsoup 解析html方法
用BeautifulSoup 解析html和xml字符串 对象参数说明 实例: #!/usr/bin/python # -*- coding: UTF-8 -*- from bs4 import BeautifulSoup import re #待分析字符串 html_doc = """ <html> <head> <title>The Dormou...转载 2018-11-25 15:34:08 · 620 阅读 · 0 评论 -
BeautifulSoup 使用select方法详解
html = """ <html><head><title>The Dormouse's story</title></head> <body> <p class="title" name="dromouse"><b>转载 2018-11-25 15:40:03 · 1903 阅读 · 0 评论 -
python爬虫入门(1)-模拟登录
import requests # 创建会话 s = requests.session() # 登录要请求的地址, url = "http://www.jokeji.cn/user/c.asp" # 登录所需要的get参数 # 通过抓包的到需要传递的参数 data = { 'u': '17312345678', # 账号 'p': '123456', # 密码 'sn'...转载 2019-02-13 16:45:40 · 402 阅读 · 0 评论