m******g 发帖数: 3667 | |
r****t 发帖数: 10904 | |
m******g 发帖数: 3667 | 3 你还记得那个帖子的题目叫什么吗?
我搜了"扫号器“,”扫“,”号“,”器“,都没有搜到
【在 r****t 的大作中提到】 : 同求
|
B******i 发帖数: 213 | 4 >60% AP for SRC1290188840 to SRC1290188890 get approved
【在 m******g 的大作中提到】 : 我搜了半天,也没有找到。 : 有人有链接吗?
|
m******g 发帖数: 3667 | 5 我就是那40%里面的。 :(
【在 B******i 的大作中提到】 : >60% AP for SRC1290188840 to SRC1290188890 get approved
|
c**n 发帖数: 312 | 6 改进版:
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 发帖数: 312 | 7 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! |
c**n 发帖数: 312 | 8 Don't give up. A 485 right in front of me (RD 11/11) was approved yesterday.
Not sure cateogry, PD, etc.
【在 m******g 的大作中提到】 : 我就是那40%里面的。 :(
|
m******g 发帖数: 3667 | 9 我现在指纹通知也没有,前后AP都批了。就是不批我和我老婆的。
对了,我把你的code稍微改了一下。晚上贴出来。
yesterday.
【在 c**n 的大作中提到】 : Don't give up. A 485 right in front of me (RD 11/11) was approved yesterday. : Not sure cateogry, PD, etc.
|