Coder Social home page Coder Social logo

fetch_baidu_index's Introduction

fetch_baidu_index

目的:本项目主要是用来抓取百度指数的值。因为百度指数为了防止抓取,将数字转成了图片。

运行步骤:

1.修改baidu_index/config.py要启用的浏览器driver, 因为有些人PhantomJS配置可能有问题,默认使用Firefox(容易配置). 具体参考selenium的浏览器环境配置

2.修改baidu_index/config.py里面的百度账号跟密码

3.baidu_index/config.py 不配置start_date和end_date,可以查询到这个关键词数据的最大区间

4.修改task.txt,这是关键词的任务列表,一行一个。注意这里面的编码是utf-8的,最好也别带bom头,免得出问题

5.执行 python main.py

如果对你有帮助,请点个赞吧,真心求赞!有什么意见或者问题也请反馈,我在这里会经常维护的。

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.