Skip to content

Instantly share code, notes, and snippets.

View streetgt's full-sized avatar

Tiago Cardoso streetgt

View GitHub Profile
@streetgt
streetgt / youtube_comment_bot.py
Last active January 15, 2022 13:04
Youtube Comment Bot - python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python bot for comment a list of urls in YouTube
import time
import numpy as np
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
@streetgt
streetgt / mediawiki_fileupload.py
Last active October 2, 2016 23:31
MediaWiki File Upload Bot - python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python bot for upload files in MediaWiki, originaly created for use at GTA Network.
# Tiago 'StreetGT' Cardoso (tiagocardosoweb@gmail.com)
# For use, you need to create a folder called "files" and add the files inside to be upload.
# Should be on same folder root from the script, or won't work.
import os
import numpy
@streetgt
streetgt / twitch_mass_chat_inviter.py
Last active November 14, 2017 18:14
Twitch Group Chat - Inviter
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python bot for mass invite users to a twitch group channel
# You need oauth_token for use this script, also you need to be chat room owner to invite
import requests,sys
def fetch_channel_users(channel_name):
# URL for fetch the users from a given channel
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Bot for send you the results of your played keys.
# Works only for Friday.
# Addapt it if you want to.
import requests, datetime, smtplib, sys
from email.mime.text import MIMEText
from lxml import etree
@streetgt
streetgt / vipon_bot.py
Last active March 5, 2023 00:09
Vipon - Scraper
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# used to click products given a product_id and fetch all vouchers
import requests, time
from lxml import etree
class ViponBot:
def __init__(self, email, password):
self.email = email
@streetgt
streetgt / configure.sh
Last active September 11, 2023 20:07 — forked from lukicdarkoo/configure.sh
Raspberry Pi: AP + client mode
#!/bin/sh
# The script configures simultaneous AP and Managed Mode Wifi on Raspberry Pi Zero W (should also work on Raspberry Pi 3)
# Usage: curl https://gist.githubusercontent.com/streetgt/ff17c3ef817121377229870e58b6d4e9/raw | sh -s WifiSSID WifiPass APSSID APPass
# Licence: GPLv3
# Author: Darko Lukic <lukicdarkoo@gmail.com>
# Special thanks to: https://albeec13.github.io/2017/09/26/raspberry-pi-zero-w-simultaneous-ap-and-managed-mode-wifi/
MAC_ADDRESS="$(cat /sys/class/net/wlan0/address)"
CLIENT_SSID="${1}"
CLIENT_PASSPHRASE="${2}"