forked from zhanghe06/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
15 lines (12 loc) · 383 Bytes
/
test.py
File metadata and controls
15 lines (12 loc) · 383 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# coding:utf-8
__author__ = 'zhanghe'
import requests, sys
#for cid in open('/tmp/all.cids.txt'):
for cid in [12345, 354545, 43676, 6767, 7686, 45632, 397320]:
url = 'http://www.wealink.com/gongsi/shouye/%s/' % cid
res = requests.get(url)
res.encoding = 'utf-8'
if u'<li><label for="shortname">' in res.text:
print 'error', cid, url
else:
pass