Skip to content

Instantly share code, notes, and snippets.

View ozzimpact's full-sized avatar
🏠
Working from home

Oğuzhan Demir ozzimpact

🏠
Working from home
View GitHub Profile
@ozzimpact
ozzimpact / spotify_charts.py
Created January 29, 2019 10:55 — forked from chadmhorner/spotify_charts.py
Scrape Spotify Charts using ReadyPipe
from readypipe import requests, starting_task, subtask, schedule, save, schedule_many
import datetime
CHART_URL = 'https://spotifycharts.com/regional/%s/daily/%s'
@starting_task
def load_todays_urls():
chart_page = requests.get_dom_from_content(CHART_URL % ('global', 'latest')) #visit latest page
countries_set = set()
yesterday = (datetime.datetime.today() - datetime.timedelta(days=1)).strftime('%Y-%m-%d') #get yesterday's date
@ozzimpact
ozzimpact / es.sh
Last active March 3, 2017 08:15 — forked from bugthesystem/es.sh
#!/bin/bash
ELASTICSEARCH_VERSION=1.7.6
### Download and install the Public Signing Key
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ELASTICSEARCH_VERSION}.deb
### Install Elasticsearch
sudo dpkg -i elasticsearch-${ELASTICSEARCH_VERSION}.deb