Giter Club home page Giter Club logo

tgcrawler's Introduction

tgCrawler

电报爬虫.

1.安装

git clone https://github.com/wxy1343/tgCrawler
pip install -r requirements.txt

2.创建数据库

CREATE DATABASE 数据库名称;

3.修改配置

api_id = 0
api_hash = ''         # 获取api_id和api_hash:https://my.telegram.org/apps
bot_token = ''        # 机器人token,找@BotFather创建,使用手机登录可不填
entity = ''           # 设置要爬取的群组url或用户,不填全爬
phone = ''            # 手机需要+区号
tg_password = ''      # 密码
proxy = (socks.SOCKS5, 'localhost', 2333) # 代理
host = 'localhost'    # 数据库地址
port = 3306           # 数据库端口
user = ''             # 数据库账号
password = ''         # 数据库密码
db = ''               # 数据库名称
connect_timeout = 10  # 连接数据库超时时间
charset = 'utf8mb4'   # 数据库编码

4.运行

python telegram_crawler.py

tgcrawler's People

Contributors

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