Code Monkey home page Code Monkey logo

pcrd-tw-discord-crawler's Introduction

PCRD-TW-webhook-crawler

PCRD-TW-webhook-crawler 將從超異域公主連結RE:DIVE 台灣官方網站進行爬蟲解析,抓取最新的公告並透過webhook發佈到Discord上

A crawler for mobile game "Princess Connect Re:Dive" announcements in Taiwan server, which can post the latest annoucement in discord embed block to discord channels via webhook.

README.md

Getting Started

Requirements

Installation

To run PCRD-TW-webhook-crawler, you need to install the library in requirements.txt

pip install -r requirements.txt

Configuration

Open the file "pcrd_news.py", in

webhook_links = []

Insert your discord webhook link in string, like:

webhook_links = [ 'https://discordapp.com/api/webhooks/.../...']

If you have more than one link, use comma to separate them

webhook_links = [ 'https://discordapp.com/api/webhooks/.../...',
                  'https://discordapp.com/api/webhooks/.../...'
                ]

Usage

PCRD-TW-webhook-crawler can run with command:

python pcrd_news.py

or

python3 pcrd_news.py

You can also use the VBScript in this project to setup daily scheule in Windows. First, in pcrd_news_crawler.bat, replace YOUR_PROJECT_FOLDER_PATH with your abosulte path of project folder

cd /d YOUR_PROJECT_FOLDER_PATH
python pcrd_news.py
REM pause

Second, in launch_bat.vbs, do the same action to YOUR_PROJECT_FOLDER_PATH\pcrd_news_crawler.bat remember do not replace \pcrd_news_crawler.bat Third, Press Windows + R, and type “taskschd.msc“ to open Task Scheduler. In Triggers tab, set when the task will start, the news usually updated at 12:00 and 17:00 (UTC+08:00) during the week. In Actions tab, create a new action, start a program with your launch_bat.vbs path.

Done, keep the machine power on, wait the webhook notification.

pcrd-tw-discord-crawler's People

Contributors

sugarbobo-ch 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.