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
#Original Stack query: | |
#https://data.stackexchange.com/stackoverflow/query/1664532/tags-taxonomy | |
import pandas as pd | |
import csv | |
dataset = pd.read_csv('<Path>/QueryResults.csv', sep=',',quoting=csv.QUOTE_ALL) | |
dedup_dataset = dataset.drop_duplicates() | |
dedup_dataset.drop('WikiBody', axis=1, inplace=True) | |
dedup_dataset['ExcerptBody'] = dedup_dataset['ExcerptBody'].replace(r'\s+|\\n', ' ', regex=True) |
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
#!/usr/bin/python3 | |
import requests | |
url="https://www.loom.com/share/..." | |
def extract_id_from_url(url): | |
urlRet = url.split("/")[-1] | |
if '?' in urlRet: | |
urlRet = urlRet.split("?")[0] |
OlderNewer