Skip to main content

spotifynews

Python library for creating news and collections

workflow name

Description

Spotifynews is a wrapper on spotipy that provides new more complex functionalities: news and collections. It also extends spotipy with additional functions that aim to simplify spotipy usage.

Installation

pip install spotifynews

or upgrade

pip install spotifynews --upgrade

Quick Start

More information about spotifynews can be found in the spotifynews documentation.

More information about spotipy can be found in the spotipy documentation.

To get started, install spotifynews and create an app on https://developers.spotify.com/. Add your new SPOTIPY_CLIENT_ID and SPOTIPY_CLIENT_SECRET to your environment. After script run for the first time authorize on spotify webpage by logging and allowing scope playlist-modify-public.

News

This functionality accumulates song from source playlist in local database and based on that it is able to notice truly new tracks, because new trucks are not yet in database. If this situation occurs, it creates clone of original playlist with only new tracks.

To utilize this functionality run script once a week and enjoy new hits from your favorite playlist :coffee:

from spotifynews.update import news
todays_top_hits_id = 'spotify:playlist:37i9dQZF1DXcBWIGoYBM5M'
news(database_f="test.db", original_playlist_id=todays_top_hits_id)

Collections

This functionality creates playlist from all songs stored from source playlist in local database (songs which were stored after 'news' function call). If you follow a playlist with 50 songs, which rotates 3 new songs per week, after a year your clone playlist collection will have 86 tracks.

from spotifynews.update import collections
todays_top_hits_id = 'spotify:playlist:37i9dQZF1DXcBWIGoYBM5M'
collections(database_f="test.db", original_playlist_id=todays_top_hits_id)

Release files for spotifynews 0.1.4

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

Source distribution (sdist)

Source distribution for spotifynews 0.1.4
File Size Uploaded
spotifynews-0.1.4.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spotifynews 0.1.4
File Interpreter ABI Platform
spotifynews-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 16.0 kB

Release files / spotifynews-0.1.4.tar.gz

Download URL spotifynews-0.1.4.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6af4eae4398c1f95b0cd114a0800997c70ee8e81aa28a6b615d63b96c9146685
BLAKE2b-256 checksum
How to use checksums
a5f8da6bb2c5c6833d3e6150edfcc87f93b609401cf56963bf82778b6aab8c77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.3

Release files / spotifynews-0.1.4-py3-none-any.whl

Download URL spotifynews-0.1.4-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3873930927de8e7def1d64459d974923a2a58ec81681002509435618a2b8cd1a
BLAKE2b-256 checksum
How to use checksums
204556375d972e6e909723723bb1854a73ee39f433840198487fbed80b725581
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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