View crawl.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
#!/usr/bin/env python3 | |
import re | |
import requests | |
session = requests.session() | |
url = 'http://www.spprec.com/sczw/jyfwpt/005001/005001001/MoreInfo.aspx?CategoryNum=005001001' | |
headers = {'Accept': 'text/html', 'Accept-Encoding': 'gzip, deflate', 'Referer': url, 'Accept-Language': 'zh-CN,zh;q=0.8', 'Content-Type': 'application/x-www-form-urlencoded', 'Origin': 'http://www.spprec.com', 'Connection': 'keep-alive', 'Host': 'www.spprec.com', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36'} | |
params = ['__VIEWSTATE', '__CSRFTOKEN'] | |
def getParam(paramName, heystack): |
View IIFE.js
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
$(function() { | |
var b = "src"; | |
var d = A.d("a", b); | |
$.get("/api/pg", { | |
p: d | |
}, | |
function(a) { | |
if (a[0] == 1) { | |
$("#noon").after(a[1]) | |
} |
NewerOlder