This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from requests.exceptions import RequestException | |
import json | |
#pegando lista de proxy via api | |
def proxy_scrap(): | |
url = "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=socks5&timeout=10000&country=all&ssl=yes&anonymity=all" | |
payload={} | |
headers = {} | |
response = requests.request("GET", url, headers=headers, data=payload) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import time | |
import requests | |
from requests.exceptions import RequestException | |
from user_agent import UserAgent | |
def proxy_scrap(): | |
url = "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=10000&country=br&ssl=all&anonymity=all" | |
payload={} | |
headers = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import telebot | |
import time | |
import datetime | |
bot = telebot.TeleBot("YOUR_BOT_TOKEN") | |
def handle_new_member(message): | |
new_member = message.new_chat_members[0] | |
# Adicionar a data atual como data de entrada do membro | |
new_member.joined_at = datetime.datetime.now() |