楼主: alexxucui
跳转到指定楼层
上一主题 下一主题
收起左侧

[OPT] OPT YSC17902966XX timeline

🔗
dahoo 2017-9-30 07:16:04 | 只看该作者
全局:
本帖最后由 dahoo 于 2017-9-30 07:21 编辑
..
现在6600-6699的状态是:
Summary:


Request for Initial Evidence Was Mailed-------------------------------------------------------------1

Correspondence Was Received And USCIS Is Reviewing It-----------------------------------------------1
. From 1point 3acres bbs
Case Was Transferred And A New Office Has Jurisdiction----------------------------------------------2

Name Was Updated------------------------------------------------------------------------------------2

New Card Is Being Produced--------------------------------------------------------------------------24

Card Was Mailed To Me-------------------------------------------------------------------------------26

Case Not in System Yet------------------------------------------------------------------------------44
回复

使用道具 举报

🔗
一次就好 2017-9-30 08:17:59 | 只看该作者
全局:
看到66xx的都已经mail了,而我这60XX的还是received,好忧桑!
回复

使用道具 举报

无效楼层,该帖已经被删除
🔗
xxlaipi 2017-10-3 02:22:55 | 只看该作者
全局:
dahoo 发表于 2017-9-30 07:16
现在6600-6699的状态是:
Summary:

求查一下:4800-4899
回复

使用道具 举报

🔗
sheepmiemie 2017-10-3 02:38:25 | 只看该作者
全局:
求楼主帮查一下17900058xx段~~谢谢
回复

使用道具 举报

🔗
sheepmiemie 2017-10-3 02:39:08 | 只看该作者
全局:
dahoo 发表于 2017-9-28 08:39
. Χ写了个脚本查了一下,基本上这附近的case不是card mailed就是还没更新到系统中。
YSC1790296600:Case Not  ...


求帮查一下17900058xx段~~谢谢
回复

使用道具 举报

🔗
tbjc1magic 2017-10-3 03:10:54 | 只看该作者
全局:
sheepmiemie 发表于 2017-10-3 02:39
求帮查一下17900058xx段~~谢谢
  1. #!/usr/bin/python. Χ

  2. """. 1point3acres
  3. Crawl data from USCIS website. check 1point3acres for more.
  4. https://egov.uscis.gov/casestatus/mycasestatus.do
  5. """

  6. import os
  7. import time.
  8. import sqlite3. 1point 3 acres
  9. import random
  10. import urllib2
  11. from bs4 import BeautifulSoup, Comment
  12. from mechanize import Browser
  13. from dateutil.parser import parse
  14. import pandas as pd
  15. from datetime import datetime
  16. import numpy as np
  17. from pytz import timezone  


  18. ADDRESS = 'https://egov.uscis.gov/casestatus/mycasestatus.do'
    .--
  19. default_ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36'

  20. class Crawler:
  21.     def __init__(self,start,end, prefix, address = ADDRESS):. 1point3acres
  22.         self.url = ADDRESS
  23.         self.browser = Browser()
  24.         self.start = start
  25.         self.end = end
  26.         self.headers= ['receivd','approved',
    -baidu 1point3acres
  27.                 'produce','mailed','rejected','amended',. 1point 3acres
  28.                 'transferred','exist','update']

  29.         #self.Init(start,end,prefix)
  30.         #self.Update(prefix). check 1point3acres for more.

  31.     def __del__(self):
  32.         pass
  33. . ----
  34.     def getcontent(self, id):
  35.         '''Get contents from html page for given case id.'''
  36.         # randomize headers
  37. ..
  38.         #try:
  39.         #    header = {"Connection": "close", "User-Agent": ua.random} ..
  40.         #except:
  41.         header = {"Connection": "close", "User-Agent": default_ua}

  42.         # estabish connection
  43.         request = urllib2.Request(self.url, None, header)
  44.         self.browser.open(request).google  и
  45.         self.browser.select_form(nr = 0).--
  46.         self.browser['appReceiptNum'] = id

  47.         # get response for a case
  48.         response = self.browser.submit().--
  49.         content = response.read()

  50.         return content

  51.     def getstatus(self, text):

  52.         if 'received your form i-765' in text:
  53.             return 0
  54.         elif 'approved' in text:
  55.             return 1.--
  56.         elif 'ordered your new card' in text:
  57.             return 2
  58.         elif 'new card' in text:
  59.             return 3
  60.         elif 'rejected' in text:
  61.             return 4
  62.         elif 'received your correspondence for form i-765' in text:. 1point 3acres
  63.             return 5. .и
  64.         elif 'transferred your form i-765' in text:
  65.             return 6
  66.         else:
  67.             return 7. 1point 3acres
  68. ..
  69.     def gettext(self, s):. Χ

  70.         try:
  71.             return parse(" ".join(s.split()[1:4])).date()
  72.         except:
  73.             return None
  74. ..
  75.     def getinfo(self, id):
  76.         content = self.getcontent(id)
  77. . 1point3acres.com
  78.         tag = BeautifulSoup(content,'lxml').find_all('p')[0]
  79.         text = tag.get_text().replace(',', '').lower()

  80.         if id.lower() not in text: return id, None, None.--

  81.         try:
  82.             status = self.getstatus(text)
  83.             date = self.gettext(text)
  84.         except :. 1point3acres
  85.             status, date = None, None

  86.         return id, status, date. .и

  87.     def Init(self,start,end,prefix):.1point3acres
  88.         fname = 'book.csv'. 1point 3 acres
  89.         headers = ['receivd','approved',
  90.                 'produce','mail','rejected','amended',
  91.                 'transferred','exist']
  92.         if os.path.exists(fname):. 1point3acres.com
  93.             self.df = pd.read_csv('book.csv',names=headers,skiprows=[0])
  94.         else:. 1point3acres.com
  95.             self.df = pd.DataFrame(columns = headers)

  96.         #print self.df
  97.         for idx in range(start,end):-baidu 1point3acres
  98.             if idx in self.df.index: continue.--

  99.             id, status, date = self.getinfo(prefix+'{:06d}'.format(idx))
  100.             if status is None:
  101.                 self.df.loc[idx] = [None]*(len(headers)-1)+[False]
  102.             else:. Χ
  103.                 d = [None]*(len(headers)-1) + [True]
  104.                 if status<(len(headers)-1): d[status] = date. .и
  105.                 self.df.loc[idx] = d-baidu 1point3acres

  106.             #print id,status,date
  107.             if idx%20==0: self.df.to_csv('book.csv')


  108.     def Print(self,prefix,start,end):
  109. . From 1point 3acres bbs
  110.         headers = self.headers
  111.         for idx in range(start,end+1):
  112.             id, status, date = self.getinfo(prefix+'{:06d}'.format(idx))

  113.             if 0<status<len(headers)-2:
  114.                 print prefix+'{:06d}'.format(idx),date,headers[status]
  115.             else:
  116.                 print  prefix+'{:06d}'.format(idx),'not available'



  117. . 1point 3 acres
  118. import os.path

  119. if __name__ == "__main__":

  120.     crawler = Crawler(start=290000, end=307000, prefix='YSC1790'). Χ
  121.     crawler.Print('YSC1790',295800,295900)
复制代码
给你发段我的code
回复

使用道具 举报

🔗
dahoo 2017-10-4 10:28:46 | 只看该作者
全局:
sheepmiemie 发表于 2017-10-3 02:39
求帮查一下17900058xx段~~谢谢
.1point3acres
Summary:


Card Was Mailed To Me-------------------------------------------------------------------------------50. 1point 3 acres

Card Was Delivered To Me By The Post Office---------------------------------------------------------22

Card Was Picked Up By The United States Postal Service----------------------------------------------13.1point3acres
. Waral dи,
Case Was Sent To The Department of State------------------------------------------------------------12

Case Was Approved-----------------------------------------------------------------------------------1

Card Returned Undeliverable-------------------------------------------------------------------------1

Correspondence Was Received And USCIS Is Reviewing It-----------------------------------------------1
回复

使用道具 举报

🔗
dahoo 2017-10-4 10:32:46 | 只看该作者
全局:
xxlaipi 发表于 2017-10-3 02:22
求查一下:4800-4899
..
Summary:


Case Not in System Yet------------------------------------------------------------------------------82

Card Was Mailed To Me-------------------------------------------------------------------------------14. 1point3acres

New Card Is Being Produced--------------------------------------------------------------------------4
回复

使用道具 举报

🔗
Yiwei2333 2017-10-5 08:24:05 | 只看该作者
全局:
我是YSC1790283***,7/28 received,然后一直查不到更新。。结果今天收到EAD卡了,寄出时间9/28,喜大普奔~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表