View LintCodePOST.py
This file contains 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 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() |
View mpWebSpider_mpWebSpider_items.py
This file contains 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 -*- | |
# Define here the models for your scraped items | |
# | |
# See documentation in: | |
# https://doc.scrapy.org/en/latest/topics/items.html | |
import scrapy | |