25
2022
05

html and google sheet

function doGet(e) {  var params = e.parameter;  var url = params.url;    var name = params.name;    var startRow = param

14
2022
04

Sorting Data Download (Export data with removed comp.)

Sorting Data Download.txtExport data with removed comp.
27
2022
03

Multi-photo --- pdf to image, image to pdf

'''PDF to image'''

27
2022
03

Rewrite for download imgbin photo (27/3/2022)

import osimport requestsimport lxmlfrom bs4 import BeautifulSoupimport tqdmimport multiprocessingimport timeimport refrom google.colab import drivedrive.mount('/content/drive',&
25
2022
03

Multi-images to pdf

import osimport timeimport refrom IPython.display import clear_outputfrom PIL import Imagefrom google.colab import drivedrive.mount('/content/drive', force_remount=False)try:&nb
10
2022
03

Import ipynb files from google Drive to Colab

from google.colab import drivedrive.mount('/content/drive', force_remount=False)%cd "/content/drive/MyDrive/Colab_Notebooks"try:  import import_ipynbexcept:  !pip install i

07
2022
03

get file path in multi directory

import osimport reimport shutilfrom google.colab import drivedrive.mount('/content/drive', force_remount=False)path = f"/content/drive/MyDrive/{your_directory_folder}/"file_list =&nb
27
2022
02

將圖片中的文字轉成文字

References:https://medium.com/codingbar/%E4%B8%8D%E6%83%B3%E6%89%93%E5%AD%97-%E7%94%A8-python-%E6%8A%8A%E5%9C%96%E7%89%87%E8%AE%8A%E6%96%87%E5%AD%97-ff1be7f9efefhttps://tesseract-ocr.github.io/tessdoc/Data-Files其實還有更快方法,google drive開啟圖片檔案時,點選右鍵,選擇開啟工

16
2022
02

Request header session to_dict (Update in 18/02/2022)

:authority: c1.monidai.com:method: GET:path: /20210826/ArvjnK0H/index.m3u8:scheme: httpsaccept: */*accept-encoding: gzip, deflate, braccept-language: en-US,en;q=0.9,zh-TW;q=0.8,zh;q=0.7origin: https:/

13
2022
02

Selenium for Flickr photo album download for one page (多進程 + 多綫程)

try:  from selenium import webdriverexcept:  !pip install selenium  !apt-get update   !apt install chromium-chromedriver  !pip install retryingim