Skip to content

When a user sends messages through LINE, the LINE platform would get requests then it sends Message API back to LINE, and then LINE sends messages to users.

Notifications You must be signed in to change notification settings

MilingTai/Python_Webcrawler_LINEBOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Python_Webcrawler_LINEBOT

專案介紹

本專案需先創立一個LINE的官方帳號,並連結Ngrok。 當使用者透過LINE發送訊息時,LINE Platform將會進行接收,並且傳遞至LINE Bot執行邏輯運算後 ,將透過LINE所提供的Messaging API回應訊息給LINE Platform,最後再將訊息傳遞給使用者。

前置作業1 - Django Part

0.Install packages:

pip install django
pip install line-bot-sdk

1.Create Project:

cd.. your_file_location
django-admin startproject YourProjectName

cd project_location
py manage.py runserver

2.Create App & Migration:

py manage.py startapp appName
py manage.py migrate 

前置作業2 - Ngrok Part

註冊Ngrok account
https://ngrok.com/

前置作業3 - LINEBOT Part

註冊LINEBOT developer account :
https://developers.line.biz/en/

執行畫面

Screenshot 2022-08-23 151455

About

When a user sends messages through LINE, the LINE platform would get requests then it sends Message API back to LINE, and then LINE sends messages to users.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages