26
2022
01

Upscaling 相片 (Update in 18/02/2022)

要先係 Runtime ---> Change Runtime Type 果到設定用 GPU 再 run 以下程式。import osimport subprocessimport shutilfrom google.colab import drivefrom google.colab import filesfrom google.colab import autha

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
04
2022
01

Selenium get CSDN Python data (Update in 19/2/2022)

!pip install selenium!apt-get update !apt install chromium-chromedriver!pip install fake-useragentimport os#from google.colab import drive#from google.colab import files#from&

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