Skip to content

Instantly share code, notes, and snippets.

@lavarini
Created October 3, 2013 03:07
Show Gist options
  • Save lavarini/6804200 to your computer and use it in GitHub Desktop.
Save lavarini/6804200 to your computer and use it in GitHub Desktop.
Tentativa =(
# -*- coding: utf-8 -*-
import urllib2
from bs4 import BeautifulSoup
from StringIO import StringIO
import gzip
txheaders = {
'User-agent' : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19" ,
"Referer" : "http://mangafox.me/manga/naruto/",
"Host" : "mangafox.me",
"Cookie": "mfvb_sessionhash=6e155e9bcd990694312650a93aa2c868&mfsid=40v1rnapr5b52tb26bm8bm0nr3&mfvb_lastvisit=1380337302&MarketGidStorage=%7B%220%22%3A%7B%22svspr%22%3A%22http%3A%2F%2Fmangafox.me%2Fmanga%2Fnaruto%2F%22%2C%22svsds%22%3A24%2C%22TejndEEDj%22%3A%22MTM4MDc2MzU5MzMwNTk0NjM5NjM%3D%22%7D%2C%22N9463%22%3A%7B%22page%22%3A4%2C%22time%22%3A1380768375857%7D%7D"
}
request = urllib2.Request('http://mangafox.me/manga/naruto/vTBD/c649/1.html', None, txheaders)
# request.add_header('Accept-encoding', 'gzip')
response = urllib2.urlopen(request)
data = BeautifulSoup(response.read())
import pdb
pdb.set_trace();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment