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 re | |
import requests | |
from bs4 import BeautifulSoup | |
url = 'https://liquipedia.net/dota2/The_International/2018' | |
html = requests.get(url) | |
html.encoding = 'utf-8' | |
soup = BeautifulSoup(html.text, "lxml") | |
divs = soup.find_all('div', class_='teamcard') |
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 re | |
from os import listdir, rename, makedirs | |
from os.path import join, splitext, basename, exists | |
from urllib.parse import quote | |
from bs4 import BeautifulSoup as bs | |
from requests import get # to make GET request | |
def advrename(original_full_path, new_filename, c): | |
new_full_path = join(pathforrenamed, new_filename) |
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
color_mode = 'ycbcr'; %rgb, ycbcr, hsv | |
work_patch = 'E:\!Scan\image match\'; | |
ref = imread([work_patch,'ref.bmp']); % Your reference image | |
A = imread([work_patch,'img.bmp']); % Your scan that needs to be calibrated | |
numColorChan = size(ref,3); | |
isColor = numColorChan > 1; |
NewerOlder