Skip to content

Instantly share code, notes, and snippets.

View rogmanster's full-sized avatar

Roger Chao rogmanster

View GitHub Profile
@rogmanster
rogmanster / scraper gist
Created January 16, 2021 08:39 — forked from rychao/scraper gist
gist for my scraper
sudo apt -y install python3-pip
git clone https://github.com/rychao/python-scraper
chmod +x python-scraper/kith.py
pip3 install selenium
curl -O https://chromedriver.storage.googleapis.com/87.0.4280.88/chromedriver_linux64.zip
sudo apt -y install unzip
unzip chromedriver
sudo mv chromedriver /usr/local/bin/.
@rogmanster
rogmanster / personal_access_token.py
Last active March 30, 2021 19:08 — forked from vitalyisaev2/personal_access_token.py
Script for obtaining Gitlab API Personal Access Token
#!/usr/bin/python3
"""
Script that creates Personal Access Token for Gitlab API;
Tested with:
- GitLab Community Edition 10.1.4
- Gitlab Enterprise Edition 12.6.2
"""
import sys
import requests
from urllib.parse import urljoin