Skip to content

Instantly share code, notes, and snippets.

@JasonCrowe
Created October 18, 2018 15:29
Show Gist options
  • Save JasonCrowe/c2792bf8c1391c23781d0a37db1cbbc5 to your computer and use it in GitHub Desktop.
Save JasonCrowe/c2792bf8c1391c23781d0a37db1cbbc5 to your computer and use it in GitHub Desktop.
Snippet for scraping artist data from triplejunearthed.com
import requests
data = {
'view_name': 'discover_artist_subpages_content_block',
'view_display_id': 'block_1',
'view_args': '46,51,56/all/206/all/all',
'view_path': 'discover/artists',
'view_dom_id': '95603486a7f8f13392af1f532e99b6ad',
'pager_element': '0',
'featured': 'all',
'field_unearthed_genre_tid': '206',
'term_node_tid_depth': 'all',
'field_unearthed_campaign_tid': 'all',
'page': '1',
}
url = 'https://www.triplejunearthed.com/views/ajax'
rs = requests.post(url, data=data)
pprint(rs.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment