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
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 |
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 | |
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 |