Code Monkey home page Code Monkey logo

quascrapy's Introduction

去哪儿网(景区与景区评论信息爬虫)

可爬取到去哪儿网景区搜索中相关地区的景区数据,QuaSpider蜘蛛中的keywords字段就是搜索关键字的一个数组,会自动翻页爬取数组中的地区景区以及景区相关的评论数据。

配置

在主项目下的,settings.py文件中可以配置mysql相关配置与链接池配置:

MYSQL_HOST = 'localhost'
MYSQL_DATABASE = 'yiuman'
MYSQL_USER = 'root'
MYSQL_PASSWORD = 'yiuman'
MYSQL_PORT = 3306
INIT_TABLE_SQL_FILE = 'qua.sql'

PROXIES = [
    '119.41.207.206:8118',
    '115.219.40.107:8118',
    '182.149.157.235:8118',
    '171.41.161.51:8118',
    '112.80.158.109:8118',
    '122.193.122.161:8118',
]

运行

    直接运行 scrapy crawl qua
    传参运行 scrapy crawl qua -a keywords=['阳山','连山']

quascrapy's People

Contributors

yiuman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.