从门户网站获取信息并将其推送到我手机上的在线应用程序。你知道吗
TypeError: push_message() missing 3 required positional arguments: 'self', 'to', and 'messages'
用硒获取信息的过程似乎运行良好,因此省略了它。你知道吗
from selenium import webdriver
import time
import pyautogui as auto
from bs4 import BeautifulSoup
from linebot.models import TextSendMessage
from linebot.exceptions import LineBotApiError
ID = ''
PASS = ''
from linebot import LineBotApi
from linebot.models import TextSendMessage
LINE_CHANNEL_ACCESS_TOKEN=''
def main():
main = 'test'
user_id = ""
send=LineBotApi.push_message()
send(to=user_id, messages=TextSendMessage(text=main))
main()
我已经添加了def main():
,但仍然不能解决问题。你知道吗
我是Python和编程的新手。你知道吗
试试这个:
更多信息:
https://developers.line.biz/en/reference/messaging-api/#send-push-message
相关问题 更多 >
编程相关推荐