GithubHelp home page GithubHelp logo

mekwenby / weibo_keyword_image_download Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6.68 MB

新浪微博#关键字#搜索页面高清图片下载|小姐姐图片下载|微博爬虫

License: MIT License

Python 100.00%
weibo weibo-spider

weibo_keyword_image_download's Introduction

weibo_Keyword

新浪微博#关键字#话题搜索页面高清图片下载

基于Python3.8.10 + selenium 实现

适用平台:Windows10 + Chrome

0.准备工作

拉取代码

安装Chrome浏览器:https://www.google.cn/chrome/

下载浏览器版本对应的chromedriver.exe :https://chromedriver.chromium.org/downloads

并放入driver文件夹

打开Chrome浏览器进入微博首页登录账号

关闭浏览器

1.配置相关参数

安装依赖库:

pip install -r requirements.txt

打开keyword_list.txt文件输入关键词,多个换行

打开main.py文件设置其他参数:

import os
from keywords import Keyword
import Mek_master as Master

Master.logo_Slabt('Running')

# 通过文件构建关键词列表
key_list = Master.read_file('keyword_list.txt').split('\n')

k = Keyword()

#k.start_date = '2022-10-31'  # 开始日期
#k.end_date = '2022-10-31' # 结束日期

for key in key_list:
    k.main(k.build_tasks(key))

k.exit()
2.开始下载
python mian.py

weibo_keyword_image_download's People

Contributors

mekwenby avatar

Stargazers

 avatar

Watchers

 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.