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
pip freeze > requirements.txt | |
$ virtualenv <env_name> | |
$ source <env_name>/bin/activate | |
(<env_name>)$ pip install -r path/to/requirements.txt |
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/env python | |
import pyperclip | |
example_list = ["Line 1", "Line 2", "Line 3", "forever and ever"] | |
def list_to_clipboard(output_list): | |
""" Check if len(list) > 0, then copy to clipboard """ | |
if len(output_list) > 0: | |
pyperclip.copy('\n'.join(output_list)) |
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 urllib.parse import urlsplit | |
from collections import deque | |
from bs4 import BeautifulSoup | |
import pandas as pd | |
from google.colab import files | |
original_url = input("Enter the website url: ") |
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 request, pandas as pd | |
r = requests.get('http://www.worldometers.info/coronavirus/') | |
dfs = pd.read_html(r.text) |