This file contains 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
# coding: UTF-8 | |
import subprocess | |
import re | |
def extract_essid(line): | |
# ESSID:"essid" のパターンがあるかどうか | |
pattern = r'.*ESSID:"(.*)"' | |
result = re.match(pattern, line) | |
if result: | |
return (True, result.group(1)) |
This file contains 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
# coding: UTF-8 | |
class Test(): | |
def __init__(self, name): | |
self.name = name | |
def set_id(self, x): | |
self.id = x | |
def who_are_you(self): |
This file contains 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
lista = [1, 2, 3] | |
listb = ['a', 'b', 'c'] | |
for idx, (la, lb) in enumerate(zip(lista, listb)): | |
print(idx, la, lb) |
This file contains 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 pytube | |
link = input('Enter Youtube Video URL ') | |
yt = pytube.YouTube(link) | |
yt.streams.filter(progressive=True, file_extension='mp4').order_by('resolution').desc().first().download() | |
print('downloaded', link) |
OlderNewer