Skip to content

Instantly share code, notes, and snippets.

@50225512
50225512 / LintCodePOST.py
Created April 29, 2018 03:04
lintCode反爬虫登陆
# -*- coding=utf-8 -*-
import requests
agent = 'Mozilla/5.0(Windows NT 6.1; rv:59.0) Gecko/20100101 Firefox/59.0'
referer = 'https://www.lintcode.com/accounts/signin/'
Token = 'KPHxDihzU8OiLudC3DsDyhVK78HO657d'
headers = {'User-Agent': agent, 'Referer': referer, 'X-CSRFToken': Token}
post_url = 'https://www.lintcode.com/accounts/signin/'
s = requests.Session()
@50225512
50225512 / mpWebSpider_mpWebSpider_items.py
Created March 7, 2018 14:39
爬虫一个不可描述的网站
# -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy