Skip to content

Instantly share code, notes, and snippets.

@ywchiu
Created January 13, 2015 02:16
Show Gist options
  • Save ywchiu/15ba48926447957013dd to your computer and use it in GitHub Desktop.
Save ywchiu/15ba48926447957013dd to your computer and use it in GitHub Desktop.
import requests
header = {'user-agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
res = requests.get("https://www.google.com.tw/search?tbs=sbi%3AAMhZZisDdaia0AXISbyJd4X5hHQCRAQCgZMV-EbUWeSAAu1pRFVlaPE8OFg9ABtUKsyL1Mv-FEH0V6Au_1jUrygpKCIufrYROqHRkaFeELfwD40fp03kp2bSKJFZL9T_1VR_1yyXV_1Rl-Eq9_1a9JfuY-8QC_1fPWOISfFyVfSVB4NR8F63F-Gh4shJyYrFN5S144Cst9qQtmonNcxMKitRyCVMhzViFlUrUi8rr-3ZhJdjKcHS-GcoxbFoy6ima-ngIHoIjlQh7B462BjDdOTppgwwy1KK7-SqY11ai-IyapTJec7JkFS_182sfULocSDtL3TZiwDxLiUP1GZws9fTtgQp1wmzRS78JcoEups3pgh_1CAIqIj9cb22eABqchmgdr2cxIHVxJzhqh491nHs1_1qbLY8Hb9r03JxvErYf8r-Ju-j7LjdwHhpqwA1U2HB6tHkjmnz5qvw1GciQiLHlierin3aPAxqw3w4W959fOlot4hS5YjceWFREvxtELeSQI-UgPfGkgbCkCZrlmqXAwLh9gEahKdkwecjCWdEliC9AxL_1j4bkerV3itA69S8_1Uw4k7CWPLV-hNfzhNQkXPGSnUrhMpVXJGrteAfyxUtSqhZ5EujWkkzY8PWrcV8BwFfeDth_1gBNbT5kCMyyLLHErK2KWPgls8-mg7-RqxcyhP5UV79qA9RMk4bkVjz_1vnoNChzJv_15gZqWTQeYqUzPVEKLi7BgyMCLNCXhw3jAUD3oeJ0aYlffOPM0iCO1CxbMXr-wqG_1QdqzC2ed_19I5Juvz0SLWgqGsDdXm-oN3aEb1-htaXwMLhepm3kvXrTeqCwNhfeWuvsXz2lW14qd8dtTI4hr8WMAZEPNWsac3v9VbyRegzs8JB52GMo-jcVSUDKefHcrrBsg59LHIjIM7s4u_1UUbuSXt7HFPOI2o044fmWsk18FC_1ATbKdjXHyKxnnvedpYa9m_1UJZlzAvweOXaxO3RTFskQL5vS4yVy3IpuwRGdww7KpPfC0ZDIiGiVs2e5xBH4QaJMsaCHcDQeAamAqH8kftefPszuREL6RzRv189fEkZTIg0o-RLc2rJfjZmqQWbmGEB1h_1NBISzCLOewafC5zyVh7Vd7mdFfBj89_1VVmitlqGILb_12iCOH8oMmw9_1pO2etB9Z5fKbK2ALa0R7Q2MO4kpZZamgKoZNVsIswG9_1sSkF_1v--hk9_1wZs2XDUwn7vfK1pniBx9e5UaiTTFhJZ4IX-Xo8udOLdsfTYa7b77Ljo09wBbGCqML5dH9oLsnPaywDDoe1cv9FmBgQsv23gfGEvn6HuUJwqVOG6y8PPcqRkP8j2rSn2MbgTyd4Oq0M0tic_1d9ds8QkwkTW9tSl1c0cK2D55W17kOMZnoQAr5rB5N_1zA6OgerTGevOvydt8kx7_1elGEzUeL1cJhU8nlWf_1Rf8qFBeoNqS71hKomupwVHfWa-Y7ef4UpaZHP8vN2EVBTSpskiPQb59yx3nWXhzojbCueMWs8A&btnG=%E4%BB%A5%E5%9C%96%E6%90%9C%E5%B0%8B", headers = header)
print res.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment