Skip to main content

A python3 library for download Movie comment from Maoyan

Project description

# 猫眼电影数据爬虫

### __两行代码 爬取想要的影评__

* 环境配置
1. Docker方式(推荐)

使用 打包好的Dockerfile构建(暂未提供)

2. 传统部署(默认已安装python环境)
1. pip install requirement.txt 安装工程所需模块
2. sudo apt install mongodb 安装mongodb(使用txt保存数据可跳过)

* 使用方法
# 引入Maoyan类
from import Maoyan

if __name__ == '__main__':
# movie_id是电影对应的猫眼id,pegesize是选择下载评论的页数,thread_max仅用于多线程下载,为线程数
maoyan = Maoyan(movie_id=1175253, page_size=40, thread_max=20)
# 保存到mongodb
# 保存到txt文本


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
SimpleCat-1.1.0-py2.py3-none-any.whl (3.1 kB) Copy SHA256 hash SHA256 Wheel py2.py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page