Skip to content

Commit

Permalink
Adding descriptions for each file
Browse files Browse the repository at this point in the history
  • Loading branch information
youngian committed Jun 4, 2009
1 parent 89a4a80 commit 2befe03
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scrape.py
Expand Up @@ -16,6 +16,13 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

##
## Scrape the website for 89.3 The Current, retrieving all songs played
## during the given date range.
##
## Accepts one argument, the name of the database to write to
##

import urllib
from BeautifulSoup import BeautifulSoup
import sqlite3
Expand Down
6 changes: 6 additions & 0 deletions scrape_clearchannel.py
@@ -1,4 +1,10 @@
#!/home/youngian/local/bin/python

##
## Scrape a variety of Clearchannel-powered radio websites for their
## most recently played songs. Should be run once every ~10-20 minutes.
##

import urllib
from BeautifulSoup import BeautifulSoup
from pysqlite2 import dbapi2
Expand Down
7 changes: 7 additions & 0 deletions scrape_yescom.py
@@ -1,4 +1,10 @@
#!/home/youngian/local/bin/python

##
## Scrape Yes.com to retrieve recently played songs.
## Should be run regularly (every 15 minutes works well for me).
##

import urllib
from pysqlite2 import dbapi2
import re
Expand All @@ -11,6 +17,7 @@

debug = False

# Initialize the databases. Should be called once when first starting collection.
def create_tables(db):
connection = dbapi2.connect(db)
c = connection.cursor()
Expand Down

0 comments on commit 2befe03

Please sign in to comment.