Code Monkey home page Code Monkey logo

fetchbandcampemails's Introduction

FetchBandcampEmails

About

Helper script which uses the Gmail API to find new release emails from Bandcamp.

Setup

Gmail API Credentials

The easiest way to setup credentials is to go to the Pythong quickstart page:

https://developers.google.com/gmail/api/quickstart/python

Scroll down and click: Enable the Gmail API

After accepting everything, download the credentials.json file and place it in the top level of this project (i.e. ./FetchBandcampEmails/credentials.json)

Alternatively, follow this:

https://medium.com/@stevelukis/using-python-and-gmail-api-to-retrieve-list-of-senders-to-our-email-be3249f1a6db

Note: DO NOT SHARE THIS FILE BUT maybe put it in your password manager ;)

Python

run:

python -m venv .venv 
source .venv/bin/activate
pip install -r requirements

Running

Basic Command

python FetchBandcampEmails.py

Note: The first time you run the command you will be required to login to your gmail account. A file will be created--token.pickle--which is used by the script to prevent the need of loging in again. DO NOT SHARE THIS FILE

Command Line Options

  • -o, --outfile - optional output file for URL list
  • -m, --mark - optional mark found emails as read (remove UNREAD label)

fetchbandcampemails's People

Contributors

sabjorn avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

fetchbandcampemails's Issues

new crawler

rather than get emails from Bandcamp, directly crawling all followed users and labels/artists on a regular basis might be stronger.
will require some form of DB to keep track of which tracks have already been checked AND when.

crawler will need endpoints in Bandcamp API for:

  • list all users followed by user
  • list all bands/artists followed by user
    then, at regular intervals, the latest tracks purchased or released will be downloaded.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.