Skip to main content

An unofficial python API for pitchfork.com reviews.

Build Status

Version

Downloads (30 days)

Build Status

Latest Version

Downloads

Installation

You can get it from python package index:

pip install pitchfork

You can also clone the repository, but note that pitchfork depends on beautifulsoup4 for HTML parsing so you first have to install beautifulsoup4 yourself !!!

git clone https://github.com/michalczaplinski/pitchfork.git

Usage

>> import pitchfork

>> p = pitchfork.search('kanye west', 'my beautiful') # the title is autocompleted
>> p.album() # the full album title
u'My Beautiful Dark Twisted Fantasy'

>> p.label()
u'Def Jam / Roc-A-Fella'

>> p.editorial()[:100] # get the first 100 characters of the review.
u"Kanye West's 35-minute super-video,\xa0Runaway, peaks with a parade. Fireworks flash while red hoods ma"

# the link to the album cover image
>> p.cover()
'http://cdn4.pitchfork.com/albums/15935/homepage_large.831179e9.jpg'

>> p.score()
10.0
# pretty overrated IMHO!

Tests

You can run the basic tests located in the tests directory with:

$ cd pitchfork
$ python3 -m unittest discover

License

MIT

Contributions

If you want to add some new feature, suggest improvement or whatnot you’re welcome to message me or send a pull request!

Release files for pitchfork 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pitchfork 0.1.5
File Size Uploaded
pitchfork-0.1.5.tar.gz 6.1 kB Details

Release files / pitchfork-0.1.5.tar.gz

Download URL pitchfork-0.1.5.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7dd5846a75e1ed21824002aa9573883bff7a4a6b0d26b9d38a5a8f6ba4ccbad0
BLAKE2b-256 checksum
How to use checksums
16f863cbc2c774f2a3a8867a956602e84088b584f8c09fd70c41ca7270a8b372
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file

v0.1.4

1 release file

v0.1.3

1 release file

v0.1.2

1 release file

v0.1.1

1 release file

v0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page