skip to Main Content

I need send copied text in telegram bot using selenium-chromedriver – Telegram API

element = browser.find_element_by_xpath("//div[@class='span12']") # send the copied text back context.bot.send_message(chat_id=update.message.chat_id, text=element) #come error element = browser.find_element_by_xpath("//div[@class='span12']") 2021-10-15 05:34:51,229 - telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception ........................ raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of…

VIEW QUESTION

Csrftoken is not defined – Jquery ajax

I'm using the following code as recommended by the documentation: function csrfSafeMethod(method) { // these HTTP methods do not require CSRF protection return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method)); } $("#formTabla").submit(function(event){ event.preventDefault(); var formData = new FormData(this); $.ajax({ beforeSend: function(xhr, settings) { if (!csrfSafeMethod(settings.type) &&…

VIEW QUESTION

send Youtube videos to telegram – Telegram API

i wrote this program : import scrapetube import hashlib import telegram import requests import json from pytube import YouTube from time import sleep import os bot_token = 'my token' bot_chatID = '@PinkPanthersShow' bot = telegram.Bot(token=f'{bot_token}') c_videos = scrapetube.get_channel("UC1fIyfhQtm1fSljyKBf2uKA") videos =…

VIEW QUESTION

How i can get href from row – Telegram API

I do some telegram bot, and i need to get links from html. I want to take href for Matches from this website https://www.hltv.org/matches My previous code is elif message.text == "Matches": url_news = "https://www.hltv.org/matches" response = requests.get(url_news) soup =…

VIEW QUESTION
Back To Top
Search