Code Monkey home page Code Monkey logo

podcast-description-search's Introduction

iTunes Feed to Pandas Script

Takes an itunes feed, optionally a string to match and grabs the itunes compatible xml and turns it into a pandas dataframe. Can also dump the file to a csv.

Usage

usage: search.py [-h] [-q QUERY] [-o OUT] itunes_url

Takes in an itunes podcast id, searches for a specific string, also dumps all the shows to a csv.

positional arguments:
itunes_url            URL from itunes for podcast

optional arguments:
-h, --help            show this help message and exit
-q QUERY, --query QUERY
Specific string to search for. This is quite dumb so the csv with a more complex engine might be better
-o OUT, --out OUT     Path to dump the results to a csv

Example

Default

./search.py https://podcasts.apple.com/us/podcast/the-lebanese-politics-podcast/id1372783898

returns

Feed URL: http://feeds.soundcloud.com/users/soundcloud:users:433519281/sounds.rss
                                   guid                                              title  ... enclosure image
0  tag:soundcloud,2010:tracks/812802808  episode 79 - government's plan for economic re...  ...      none  none
1  tag:soundcloud,2010:tracks/807625039                 episode 78 - bdl & monetary policy  ...      none  none
2  tag:soundcloud,2010:tracks/791460253           episode 77 - lirafication in slow motion  ...      none  none
3  tag:soundcloud,2010:tracks/786013177                episode 76 - lebanon in lockdown ii  ...      none  none
4  tag:soundcloud,2010:tracks/780848920                   episode 75 - lebanon in lockdown  ...      none  none

Query

./search.py https://podcasts.apple.com/us/podcast/the-lebanese-politics-podcast/id1372783898 -q trash

returns

Feed URL: http://feeds.soundcloud.com/users/soundcloud:users:433519281/sounds.rss
                                    guid                                      title  ... enclosure image
25  tag:soundcloud,2010:tracks/678095853  episode 54 - when drones and ratings fall  ...      none  none
67  tag:soundcloud,2010:tracks/468894144            episode 12 - coastal properties  ...      none  none

[2 rows x 12 columns]

podcast-description-search's People

Contributors

lukasschwab avatar peixian avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

lukasschwab

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.