Git Product home page Git Product logo

itunes-artwork-finder's Introduction

iTunes Artwork Finder

This is the JavaScript and PHP code that powers the iTunes Artwork Finder available at https://bendodson.com/projects/itunes-artwork-finder/

To use on your own site, simply upload both the JavaScript and PHP files and then initialise the script with something like:

<div>
	<form action="" method="get" accept-charset="utf-8" id="iTunesSearch">
		<select name="entity" id="entity">
			<option value="tvSeason">TV Show</option>
			<option value="movie">Movie</option>
			<option value="ebook">iBook</option>
			<option value="album">Album</option>
			<option value="software">App (iPhone or Universal)</option>
			<option value="iPadSoftware">App (iPad)</option>
			<option value="macSoftware">App (macOS)</option>
			<option value="audiobook">Audiobook</option>
			<option value="podcast">Podcast</option>
			<option value="musicVideo">Music Video (may not work)</option>
			<option value="id">Apple ID (Movie)</option>
			<option value="idAlbum">Apple ID (Album)</option>
			<option value="shortFilm">Short Film</option>
		</select>
		<input type="text" class="text" name="query" id="query" />
		<select name="country" id="country">
			<option value='us'>United States of America</option>
			<option value='gb'>United Kingdom</option>
		</select>
		<input type="submit" class="submit" value="Get the artwork" />
	</form>
</div>

<div id="results">

</div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="itunes.js"></script>

You will need to amend the first line within itunes.js so that the pathToAPI variable points to the absolute URL of the api.php file running on a PHP server.

itunes-artwork-finder's People

Contributors

bendodson avatar carlfriess avatar coliff avatar

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.