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 requests | |
from bs4 import BeautifulSoup | |
import time | |
import pandas as pd | |
import random | |
from urllib.parse import urlsplit | |
stories_cols = ['title', 'story'] | |
csv_stories = pd.DataFrame(columns=stories_cols) |
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 requests | |
from bs4 import BeautifulSoup | |
import time | |
import pandas as pd | |
import random | |
from urllib.parse import urlsplit | |
headers = requests.utils.default_headers() | |
headers.update( |
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
# https://git-scm.com/docs/git-remote#Documentation/git-remote.txt-emset-urlem | |
git remote set-url --add --push origin git@github.com:Foo/bar.git | |
git remote set-url --add --push origin git@gitlab.com:Foo/bar.git |
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
function acp() { | |
git add . | |
git commit -m "$*" | |
git push origin master | |
} |
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
#/bin/bash | |
shopt -s nullglob | |
downloadFromFile(){ | |
while read -r URL <&3; do | |
wget --content-disposition $(echo $URL | tr -d '\r') -P "$1/" | |
done 3<"$2" | |
} |
NewerOlder