02
2022
12

MySQL 管理人員系統 基本版

# coding=utf-8try:  import pymysqlexcept:  !pip install pymysql   import pymysqlconnection = pymysql.connect(host='remotemysql.com',user='PiFyrdk8HO',password='vZeZCaMkXu',database='PiFyrdk8HO',char
12
2022
11

class object繼承例子 -SMS轟炸

from selenium import webdriverimport timefrom threading import Threadclass HongZha(object):def __init__(self):self.phone = "xxxxx"#你要炸的tel. no.self.num = 0def send_yzm(self,button,name):button.click()self.num+=1print("{}  第{}次&nbs
16
2022
06

youtube-dl + aria2

import osfrom google.colab import drivefrom google.colab import filesfrom google.colab import authdrive.mount('/content/drive', force_remount=False)url='https://m.youtube.com/xxxxxxxx
09
2022
06

GUI YouTube-DL

import osfrom google.colab import drivefrom google.colab import filesfrom google.colab import authdrive.mount('/content/drive', force_remount=False)#@title Video + Playlist
28
2022
05

sample page

<!DOCTYPE html><html><head>    <title>Convert JSON Data to HTML Table</title>    <style>        th, td, p, input {            font:14px Verdana;
26
2022
05

Google sheet converts data to Json

function convertDatatoJson(sheet) {  var lastRow = sheet.getLastRow();  var lastColumn = sheet.getLastColumn();  var sheetData = sheet.getRange(1,1,lastRow,lastColum
14
2022
04

Sorting Data Download (Export data with removed comp.)

Sorting Data Download.txtExport data with removed comp.
12
2022
01

Proxy test

try:  from fake_useragent import UserAgentexcept:  !pip install fake_useragentimport threadingimport requestsimport queuefrom fake_useragent import UserAgentimport osfrom google.colab import drivefrom google.colab import filesfrom google.co
01
2022
01

28 hse EXAMPLE - Python selenium + beautifulsoup combined crawler

# coding=utf-8try:  from selenium import webdriver  from selenium.webdriver.common.by import By  from selenium.webdriver.support.ui import WebDriverWait  from&n
03
2021
12

Python selenium 瀏覽器自動化

update for colab chrome!apt-get update!apt install chromium-chromedriver!cp /usr/lib/chromium-browser/chromedriver /usr/bin!pip install seleniumfrom selenium import webdriverfrom selenium.webdriver.common.by import Byoptions = webdriver.ChromeOptions