z*0
2 楼
不想再跑一趟MS店了,MS给了Lumina 900+50刀GC,买了个套,还剩一点花不掉
不知道能不能去勒索Nokia,再给个100刀。。
不知道能不能去勒索Nokia,再给个100刀。。
r*t
3 楼
同求
z*0
6 楼
TITAN 2,要再等两天
Titan已经木有存货了
Titan已经木有存货了
J*e
10 楼
新的显摆方式?
c*n
11 楼
改进版:
from time import sleep
import urllib2
import re
import sys
file = open(sys.argv[1])
cases = file.readlines()
typeP = re.compile('Your Current Case Status for Form (\w+)')
statusP = re.compile('Your Case Status:
([\w\s/]*?)')
dateP = re.compile('(January|February|March|April|May|June|July|August|
September|Octobert|November|December) \d{1,2}, \\
d{4}')
for caseId in cases:
caseId = caseId.strip()
req = urllib2.Request("https://egov.uscis.gov/cris/Dashboard/CaseStatus.
do?appReceiptNum=" + caseId)
response = urllib2.urlopen(req)
html = response.read()
type = typeP.search(html)
status = statusP.search(html);
date = dateP.search(html);
dateStr = date and date.group() or "Unknown date"
if type and status:
print '%13s %8s %s Updated on %s' % (caseId, type.group(1),
status.group(1).strip(), dateStr)
else:
print '%13s not found.' % caseId
sleep(10)
Run like: python read1.py 485List
where 485List contains all the 485 receipt numbers like:
SRC1290042201
SRC1290042206
SRC1290042209
SRC1290042213
SRC1290042216
SRC1290042218
If you want to get all 485 numbers. I will post a follow-up.
from time import sleep
import urllib2
import re
import sys
file = open(sys.argv[1])
cases = file.readlines()
typeP = re.compile('Your Current Case Status for Form (\w+)')
statusP = re.compile('Your Case Status:
([\w\s/]*?)')
dateP = re.compile('(January|February|March|April|May|June|July|August|
September|Octobert|November|December) \d{1,2}, \\
d{4}')
for caseId in cases:
caseId = caseId.strip()
req = urllib2.Request("https://egov.uscis.gov/cris/Dashboard/CaseStatus.
do?appReceiptNum=" + caseId)
response = urllib2.urlopen(req)
html = response.read()
type = typeP.search(html)
status = statusP.search(html);
date = dateP.search(html);
dateStr = date and date.group() or "Unknown date"
if type and status:
print '%13s %8s %s Updated on %s' % (caseId, type.group(1),
status.group(1).strip(), dateStr)
else:
print '%13s not found.' % caseId
sleep(10)
Run like: python read1.py 485List
where 485List contains all the 485 receipt numbers like:
SRC1290042201
SRC1290042206
SRC1290042209
SRC1290042213
SRC1290042216
SRC1290042218
If you want to get all 485 numbers. I will post a follow-up.
c*n
13 楼
You can use the code in http://www.mitbbs.com/article_t0/EB23/31732133.html to get the 485 number and put them into a file.
I will change
print '%13s %8s %s Updated on %s' % (caseId, type.group(1),
status.group(1).strip(), dateStr)
to
print '%13s' % (caseId)
and run
python read.py SRC 1290042200 1290042601 | grep i485 > 485List
Have fun!
I will change
print '%13s %8s %s Updated on %s' % (caseId, type.group(1),
status.group(1).strip(), dateStr)
to
print '%13s' % (caseId)
and run
python read.py SRC 1290042200 1290042601 | grep i485 > 485List
Have fun!
j*1
25 楼
见者有份?不要伪币!
相关阅读
求助,关于AT&T iphone 4 激活gophone (转载)Win8会成为微软的大杀器?kindle touch或者k3什么时候会有特价啊版里的对赌啥时候开啊?哪里可以买游戏手柄?cm7升级多次怎么wifi驱动还搞不定?Atomic Tompad 和ultrabook差别很大吗? 看看这个iphone 4s太牛了,高科技真不是吹的 (转载)刚刚转用Android,发现有些不如人意的地方, 欢迎排砖现在从那里买galaxy nexus最便宜啊?problem to login via 3g and MiTbbs android appWikiPad ties up glasses-free 3D with games controls, all in a happy Android ICS packagekindle 到了小心talkatonefree nook with 1y subscription of nyt at 19.99/monthiphone4s有1700频段?华硕7英寸四核平板价格249美元请问在kindle里用多看如何把网络关掉?我的TP充电出现问题了,帮我看看好吗