Skip to content

Instantly share code, notes, and snippets.

@xiaojay
Created January 25, 2013 11:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xiaojay/4633741 to your computer and use it in GitHub Desktop.
Save xiaojay/4633741 to your computer and use it in GitHub Desktop.
#coding=utf-8
import re
from scrapy import log
from scrapy.http import Request, FormRequest
from scrapy.spider import BaseSpider
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.selector import HtmlXPathSelector
def print_red(s):print '\033[0;31;48m%s\033[0m'%s
class SimSpider(BaseSpider):
name = 'sim_spider'
def start_requests(self):
login_url = 'http://www.renren.com/plogin.do'
return [FormRequest(login_url,
formdata = {'email': '', 'password': ''},
callback=self.logined_in)]
def logined_in(self, response):
url = 'http://page.renren.com/601621937/fdoing/4510113664?curpage=1'
return self.make_requests_from_url(url)
def parse(self, response):
from scrapy.shell import inspect_response
inspect_response(response)
@Smartjerry768
Copy link

hi

@gajendra999
Copy link

hi

@leocentoraa
Copy link

hi

@mheanneaviles
Copy link

hi

@BanescoBanesco
Copy link

Banesco Banesco We Banesco Logistics Pvt Ltd based in East of Kailash,New Delhi offers best freight forwarding service at reasonable rates for import from China to New Delhi,India
sales@banescologistics.com
www.banescologistics.com

@anandv2infotech
Copy link

You probably saw how Bitcoin increased over 900% over the course of last year.

It was wild but not totally unprecedented if you’d been watching cryptocurrency over the last several years.

And here’s the crazy thing:

There are many other coins that still have tons of room to grow.

You may have heard of Ethereum, Litecoin, Ripple, and others but there are more coins and many more opportunities -

Follow the link below to get the full story.

https://cryptocrusher.net?46df4gsd4f

@ernestmoore
Copy link

@guddusingh
Copy link

hi everyone.https://za.gl/R9jVN

@nazmulhuda149813
Copy link

@Gentlesoulmate
Copy link

Hi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment