Git Product home page Git Product logo

excelcrawl's Introduction

PyQt5界面,Scrapy+Selenium将爬取的信息保存到Excel文件

一、部署虚拟环境,有虚拟环境的可忽略

这个项目的虚拟环境采用pipenv

安装

pip install -i https://pypi.douban.com/simple pipenv

创建环境

cd D:\(所在文件夹)\ExcelCrawl

pipenv install

进入虚拟环境

pipenv shell

二、安装所需要的库、包

cd D:\(所在文件夹)\ExcelCrawl

pip install -i https://pypi.doubanio.com/simple/ -r requirements.txt

三、运行项目

运行里面的main.py文件即可

image

例子:这里我给大家留了一个text.xlsx用来测试

image

导入文件

image

运行,稍等片刻(这里用的是selenium,可加载js渲染的网站适合大多数网站,同时防止访问频繁而被禁IP,看个人需求,静态页面的可不用这种设置)

image

如果需要修改、添加其他新闻,或想爬更多信息可在以下修改:

image

excelcrawl's People

Contributors

nearhuiwen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.