code stringlengths 1 1.72M | language stringclasses 1
value |
|---|---|
"""
parser.sql package (imdb package).
This package provides the IMDbSqlAccessSystem class used to access
IMDb's data through a SQL database. Every database supported by
the SQLObject _AND_ SQLAlchemy Object Relational Managers is available.
the imdb.IMDb function will return an instance of this class when
called wit... | Python |
"""
parser.http.movieParser module (imdb package).
This module provides the classes (and the instances), used to parse the
IMDb pages on the akas.imdb.com server about a movie.
E.g., for Brian De Palma's "The Untouchables", the referred
pages would be:
combined details: http://akas.imdb.com/title/tt0094226/combi... | Python |
"""
parser.http.personParser module (imdb package).
This module provides the classes (and the instances), used to parse
the IMDb pages on the akas.imdb.com server about a person.
E.g., for "Mel Gibson" the referred pages would be:
categorized: http://akas.imdb.com/name/nm0000154/maindetails
biography: ... | Python |
"""
parser.http.searchMovieParser module (imdb package).
This module provides the HTMLSearchMovieParser class (and the
search_movie_parser instance), used to parse the results of a search
for a given title.
E.g., for when searching for the title "the passion", the parsed
page would be:
http://akas.imdb.com/find?q=... | Python |
"""
parser.http.topBottomParser module (imdb package).
This module provides the classes (and the instances), used to parse the
lists of top 250 and bottom 100 movies.
E.g.:
http://akas.imdb.com/chart/top
http://akas.imdb.com/chart/bottom
Copyright 2009 Davide Alberani <da@erlug.linux.it>
This program is free... | Python |
"""
parser.http.searchKeywordParser module (imdb package).
This module provides the HTMLSearchKeywordParser class (and the
search_company_parser instance), used to parse the results of a search
for a given keyword.
E.g., when searching for the keyword "alabama", the parsed page would be:
http://akas.imdb.com/find?... | Python |
"""
parser.http.searchCompanyParser module (imdb package).
This module provides the HTMLSearchCompanyParser class (and the
search_company_parser instance), used to parse the results of a search
for a given company.
E.g., when searching for the name "Columbia Pictures", the parsed page would be:
http://akas.imdb.co... | Python |
"""
parser.http.searchPersonParser module (imdb package).
This module provides the HTMLSearchPersonParser class (and the
search_person_parser instance), used to parse the results of a search
for a given person.
E.g., when searching for the name "Mel Gibson", the parsed page would be:
http://akas.imdb.com/find?q=Me... | Python |
"""
parser.http.utils module (imdb package).
This module provides miscellaneous utilities used by
the imdb.parser.http classes.
Copyright 2004-2010 Davide Alberani <da@erlug.linux.it>
2008 H. Turgut Uyar <uyar@tekir.org>
This program is free software; you can redistribute it and/or modify
it under the... | Python |
"""
imdb.parser.http._bsoup module (imdb.parser.http package).
This is the BeautifulSoup.py module, not modified; it's included here
so that it's not an external dependency.
Beautiful Soup
Elixir and Tonic
"The Screen-Scraper's Friend"
http://www.crummy.com/software/BeautifulSoup/
Beautiful Soup parses a (possibly in... | Python |
"""
parser.http.bsouplxml.etree module (imdb.parser.http package).
This module adapts the beautifulsoup interface to lxml.etree module.
Copyright 2008 H. Turgut Uyar <uyar@tekir.org>
2008 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute it and/or modify
it under the t... | Python |
"""
parser.http.bsoupxpath module (imdb.parser.http package).
This module provides XPath support for BeautifulSoup.
Copyright 2008 H. Turgut Uyar <uyar@tekir.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Softwar... | Python |
"""
parser.http.bsouplxml.html module (imdb.parser.http package).
This module adapts the beautifulsoup interface to lxml.html module.
Copyright 2008 H. Turgut Uyar <uyar@tekir.org>
2008 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute it and/or modify
it under the ter... | Python |
"""
parser.http package (imdb package).
This package provides the IMDbHTTPAccessSystem class used to access
IMDb's data through the web interface.
the imdb.IMDb function will return an instance of this class when
called with the 'accessSystem' argument set to "http" or "web"
or "html" (this is the default).
Copyright... | Python |
"""
parser.http.companyParser module (imdb package).
This module provides the classes (and the instances), used to parse
the IMDb pages on the akas.imdb.com server about a company.
E.g., for "Columbia Pictures [us]" the referred page would be:
main details: http://akas.imdb.com/company/co0071509/
Copyright 2008... | Python |
"""
parser.http.characterParser module (imdb package).
This module provides the classes (and the instances), used to parse
the IMDb pages on the akas.imdb.com server about a character.
E.g., for "Jesse James" the referred pages would be:
main details: http://www.imdb.com/character/ch0000001/
biography: ... | Python |
"""
parser.http.searchCharacterParser module (imdb package).
This module provides the HTMLSearchCharacterParser class (and the
search_character_parser instance), used to parse the results of a search
for a given character.
E.g., when searching for the name "Jesse James", the parsed page would be:
http://akas.imdb.... | Python |
"""
parser.mobile package (imdb package).
This package provides the IMDbMobileAccessSystem class used to access
IMDb's data for mobile systems.
the imdb.IMDb function will return an instance of this class when
called with the 'accessSystem' argument set to "mobile".
Copyright 2005-2010 Davide Alberani <da@erlug.linux... | Python |
"""
parser package (imdb package).
This package provides various parsers to access IMDb data (e.g.: a
parser for the web/http interface, a parser for the SQL database
interface, etc.).
So far, the http/httpThin, mobile and sql parsers are implemented.
Copyright 2004-2009 Davide Alberani <da@erlug.linux.it>
This prog... | Python |
"""
_logging module (imdb package).
This module provides the logging facilities used by the imdb package.
Copyright 2009-2010 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software... | Python |
"""
_exceptions module (imdb package).
This module provides the exception hierarchy used by the imdb package.
Copyright 2004-2009 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Soft... | Python |
"""
utils module (imdb package).
This module provides basic utilities for the imdb package.
Copyright 2004-2010 Davide Alberani <da@erlug.linux.it>
2009 H. Turgut Uyar <uyar@tekir.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Lic... | Python |
"""
articles module (imdb package).
This module provides functions and data to handle in a smart way
articles (in various languages) at the beginning of movie titles.
Copyright 2009 Davide Alberani <da@erlug.linux.it>
2009 H. Turgut Uyar <uyar@tekir.org>
This program is free software; you can redistribute... | Python |
"""
helpers module (imdb package).
This module provides functions not used directly by the imdb package,
but useful for IMDbPY-based programs.
Copyright 2006-2010 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Lice... | Python |
"""
_compat module (imdb package).
This module provides compatibility functions used by the imdb package
to deal with unusual environments.
Copyright 2008-2010 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License... | Python |
"""
imdb package.
This package can be used to retrieve information about a movie or
a person from the IMDb database.
It can fetch data through different media (e.g.: the IMDb web pages,
a SQL database, etc.)
Copyright 2004-2010 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute i... | Python |
"""
company module (imdb package).
This module provides the company class, used to store information about
a given company.
Copyright 2008-2009 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by... | Python |
#!/usr/bin/env python
import os
import sys
import ez_setup
ez_setup.use_setuptools()
import setuptools
# version of the software; in the code repository this represents
# the _next_ release. setuptools will automatically add 'dev-rREVISION'.
version = '4.7'
home_page = 'http://imdbpy.sf.net/'
long_desc = """IMDbP... | Python |
#!/usr/bin/env python
import os
import sys
import ez_setup
ez_setup.use_setuptools()
import setuptools
# version of the software; in the code repository this represents
# the _next_ release. setuptools will automatically add 'dev-rREVISION'.
version = '4.7'
home_page = 'http://imdbpy.sf.net/'
long_desc = """IMDbP... | Python |
#!python
"""Bootstrap setuptools installation
If you want to use setuptools in your package's setup.py, just include this
file in the same directory with it, and add this to the top of your setup.py::
from ez_setup import use_setuptools
use_setuptools()
If you want to require a specific version of setuptools... | Python |
"""
searchPerson.py
Usage: search_person "person name"
Search for the given name and print the results.
"""
import sys
# Import the IMDbPY package.
try:
import imdb
except ImportError:
print 'You need to install the IMDbPY package!'
sys.exit(1)
name = "arnold"
i = imdb.IMDb()
i... | Python |
"""
searchMovie.py
Usage: search_movie "movie title"
Search for the given title and print the results.
"""
import sys
# Import the IMDbPY package.
try:
import imdb
except ImportError:
print 'You need to install the IMDbPY package!'
sys.exit(1)
title = "The Matrix"
i = imdb.IMDb(... | Python |
"""
topMovies.py
Prints top 10 movies, by ratings.
"""
import sys
# Import the IMDbPY package.
try:
import imdb
except ImportError:
print 'You need to install the IMDbPY package!'
sys.exit(1)
def unic(string):
try:
print string
except UnicodeEncodeError:
print ... | Python |
"""
getLinkToMovie.py
Usage: search_movie "movie title"
Search for the given title and print the results.
"""
import sys
# Import the IMDbPY package.
try:
import imdb
except ImportError:
print 'You need to install the IMDbPY package!'
sys.exit(1)
title = "The Terminator"
i = imd... | Python |
'''
Created on 21/04/2011
@author: Eran_Z
'''
| Python |
'''
Created on 29/03/2011
@author: Eran_Z
Scoring
'''
from search_m import searchSingle, searchTogether
from util_m import sum, BadMovie
#Helper functions:
def __normalizedSigmaMutualWeightHelper(w, ci, wi):
ss = searchSingle(w)
st = searchTogether(w, ci)
#return 0 if ss < st else st*wi... | Python |
#!/usr/bin/env python
from django.core.management import execute_manager
import imp
try:
imp.find_module('settings') # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've custo... | Python |
from django.db import models
class Movie(models.Model):
title = models.CharField(max_length=200, primary_key=True)
year = models.PositiveSmallIntegerField()
searchPair = models.ManyToManyField('self', symmetrical=False, blank=True, through='SearchResult')
searchSingle = models.BigIntegerField()
... | Python |
"""
Test Movies module
"""
from django.test import TestCase
from RSM.my_friends.models import RSMUser, User
from RSM.my_friends.views import getUserNames
from RSM.my_movies.views import __updateUserMoviesList
from RSM.util import getRSMUser
from RSM.algorithm.search.makeCache import makeTestCache
getUserNam... | Python |
'''
Created on Apr 29, 2011
@author: shurok
'''
from django.conf.urls.defaults import patterns
urlpatterns = patterns('my_movies.views',
(r'^viewMovieTypes/viewMovies/$','viewMovies'),
(r'^viewMovieTypes/$','viewMovieTypes'),
) | Python |
'''
Created on 21/04/2011
@author: Eran_Z
'''
from django.contrib import admin
from models import Movie, SearchResult
admin.site.register(Movie)
admin.site.register(SearchResult)
| Python |
from django.template import RequestContext
from django.shortcuts import render_to_response
from models import Movie
from RSM.util import getRSMUser, verifySessionValidity, printDebug, getTitle
def viewMovieTypes(request):
nonValidSessionFlag = verifySessionValidity(request)
if nonValidSessionFlag:
... | Python |
#from django.db import models
#from RSM.my_movies.models import *
#from RSM.my_friends.models import *
| Python |
"""
Test recommendations module
"""
from django.test import TestCase
from RSM.my_friends.models import RSMUser, User
from RSM.my_friends.views import getUserNames
from RSM.my_movies.views import __updateUserMoviesList
from RSM.util import getRSMUser
from RSM.algorithm.search.makeCache import makeTestCache
g... | Python |
'''
Created on 21/04/2011
@author: Eran_Z
'''
from django.conf.urls.defaults import patterns
urlpatterns = patterns('recommendation.views',
(r'^$', 'chooseFriends'),
(r'^recommend/$', 'recommend'),
) | Python |
from django.template import RequestContext
from django.shortcuts import render_to_response
from RSM.algorithm.feasibility import COR_algorithm
from RSM.my_movies.models import Movie
from RSM.util import verifySessionValidity, getRSMUser, getRSMGroup, getTitle
recommendationLimit = 10
def recommend(request):
... | Python |
#!/usr/bin/env python
from django.core.management import execute_manager
import imp
try:
imp.find_module('settings') # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've custo... | Python |
from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^recomm... | Python |
# Django settings for RSM project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DEBUG_PRINTS = DEBUG
SITE_ROOT = os.path.dirname(os.path.realpath(__file__)).replace('\\','/')
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGI... | Python |
from django.shortcuts import redirect, get_object_or_404
from my_friends.models import RSMUser
from my_groups.models import RSMGroup
import string
from django.conf import settings
def getRSMUser(username):
return get_object_or_404(RSMUser, user__username=username)
def getRSMGroup(username, groupname):... | Python |
from django.contrib import auth
from django.contrib.auth.models import User
from django.template import RequestContext
from django.db import IntegrityError
from django.shortcuts import render_to_response, get_object_or_404, redirect
from RSM.my_friends.models import RSMUser
from RSM.util import printDebug, getExt... | Python |
from django.db import models
from django.contrib.auth.models import User
class RSMUser(models.Model):
user = models.OneToOneField(User)
friends = models.ManyToManyField('self', symmetrical=False, blank=True)
seen = models.ManyToManyField('my_movies.Movie', related_name='viewers', blank=True)
lik... | Python |
"""
Test Friends module
"""
from django.test import TestCase
from models import RSMUser, User
#from django.template import RequestContext
from RSM.my_friends.views import getUserNames
getUserNames = getUserNames
class FriendsTest(TestCase):
added = False
testCount = 1
def setUp(self)... | Python |
from django.conf.urls.defaults import patterns
urlpatterns = patterns('my_friends.views',
(r'^add/$','addFriend'),
(r'^all/$','viewAllFriends'),
(r'^remove/$','removeFriend'),
(r'^activeAdd/$','actualAdd'),
) | Python |
'''
Created on 21/04/2011
@author: Eran_Z
'''
from django.contrib import admin
from models import RSMUser
admin.site.register(RSMUser)
| Python |
from django.template import RequestContext
from django.shortcuts import render_to_response
from models import RSMUser
from RSM.util import verifySessionValidity, getUserNames, getRSMUser
def addFriend(request):
nonValidSessionFlag = verifySessionValidity(request)
if nonValidSessionFlag:
ret... | Python |
from django.db import models
class RSMGroup(models.Model):
owner = models.CharField(max_length=200)
groupName = models.CharField(max_length=200)
members = models.ManyToManyField('my_friends.RSMUser')
class Meta:
unique_together = ("owner", "groupName")
def __unicode_... | Python |
"""
Test Groups module
"""
from django.test import TestCase
from RSM.my_friends.models import RSMUser, User
#from django.template import RequestContext
from RSM.my_friends.views import getUserNames
from RSM.util import getRSMGroup
getRSMGroup = getRSMGroup
getUserNames = getUserNames
class GroupsTest(T... | Python |
'''
Created on May 26, 2011
@author: dima
'''
from django.conf.urls.defaults import patterns
urlpatterns = patterns('my_groups.views',
(r'^allGroups/$','allGroups'),
(r'^create/$','createGroup'),
(r'^remove/$','removeGroup'),
(r'^activeAdd/$','actualAdd'),
(r'^manage/$','editGroup'),
... | Python |
from django.template import RequestContext
from django.db import IntegrityError
from django.shortcuts import render_to_response, redirect
from models import RSMGroup
from RSM.util import verifySessionValidity, getRSMGroup, getUserNames, getRSMUser, isSafeName, getExtend
import hashlib
def allGroups(request):
... | Python |
'''
Created on 07/04/2011
@author: Eran_Z
IMDB functions, based on Alex's implementations
'''
import sys
try:
import imdb
except ImportError:
print 'You need to install the IMDbPY package!'
sys.exit(1)
#a handler/gateway for all IMDB API functions
imdbObj = imdb.IMDb()
def getLink... | Python |
'''
Created on 30/03/2011
@author: Eran_Z
Utilities
'''
def sum(x,y):
return x+y
| Python |
'''
Created on 08/04/2011
@author: Eran_Z
Google search (num results), based on Dima's implementation
currently uses deprecated API
'''
import json
import urllib
#N = 25270000000L #25.27 billion, roughly google's index size. Should be reduced for other engines.
N = 1870000000L #roughly the index of the... | Python |
'''
Created on 29/03/2011
@author: Eran_Z
Weighting
'''
import search_m
from util_m import sum
from math import log
#Helper functions
def __singleNGDWeight(term1, term2):
return 0 if term1 == term2 else max(0, 1 - search_m.NGD(term1, term2))
def __singleMutualInformationWeight(term1, term2):
... | Python |
'''
Created on 29/03/2011
@author: Eran_Z
Searching
'''
from math import log
import random
import sys
import google_m
def __search(searchStr):
"""Searches given search string on the web.
Returns number of hits."""
temp = int(sys.maxint*random.random())
print searchStr + " : " + str(... | Python |
'''
Created on 27/03/2011
@author: Eran_Z
Feasibility study (main)
'''
import weights_m
import scores_m
import io_m
def generateWeights(algorithm, context, world):
"""Generates a list of weights for the context items.
This is a list of numbers (preferrably positive)"""
return algorithm(co... | Python |
'''
Created on 29/03/2011
@author: Eran_Z
IO
'''
#Input
def getWeightingAlg():
"""Gets the name of the desired weighting algorithm."""
return "Mutual Information"
def getScoringAlg():
"""Gets the name of the desired scoring algorithm."""
return "Normalized Mutual Information"
def g... | Python |
'''
Created on 29/03/2011
@author: Eran_Z
Scoring
'''
from search_m import searchSingle, searchTogether, searchExclusion, NGD
from util_m import sum
#Helper functions:
def __sigmaMutualWeight(w, context, weights):
#TODO: DRY with __normalizedSigmaMutualWeight...
return reduce(sum, map(lambda... | Python |
'''
Created on 07/04/2011
@author: Eran_Z
IMDB functions, based on Alex's implementations
'''
import sys
try:
import imdb
except ImportError:
print 'You need to install the IMDbPY package!'
sys.exit(1)
#a handler/gateway for all IMDB API functions
imdbObj = imdb.IMDb()
def getLink... | Python |
'''
Created on 30/03/2011
@author: Eran_Z
Utilities
'''
def sum(x,y):
return x+y
class BadMovie(Exception):
pass
| Python |
'''
Created on 29/03/2011
@author: Eran_Z
Weighting
'''
import search_m
from util_m import sum, BadMovie
#Helper functions
def __singleMutualInformationWeight(term1, term2):
ss1 = search_m.searchSingle(term1)
ss2 = search_m.searchSingle(term2)
st = search_m.searchTogether(term1, term2)
... | Python |
import urllib
try:
import json
except ImportError:
import simplejson as json
import logging
class BingException(Exception):
pass
class Bing(object):
def __init__(self, app_id, loglevel=logging.INFO):
self.app_id = app_id
self.log_filename = 'log.log'
self.end_point = 'http://api... | Python |
'''
Created on Apr 23, 2011
@author: Dima
'''
import bingapi
N = 720000000L
#This Function returns number of results of keyword
#Using Bing Search Engine
def bingSearchResults(keyword):
searchval= keyword
appId = '722A2CD216180D27F3F09631E65DE629692AC3C5'
bing = ... | Python |
'''
Created on 01/05/2011
@author: Eran_Z
'''
| Python |
'''
Created on 08/04/2011
@author: Eran_Z
Google search (num results), based on Dima's implementation
currently uses deprecated API
'''
import json
import urllib
#N = 25270000000L #25.27 billion, roughly google's index size. Should be reduced for other engines.
N = 1870000000L #roughly the index of the... | Python |
import urllib
try:
import json
except ImportError:
import simplejson as json
import logging
class Boss(object):
def __init__(self, appid, loglevel=logging.INFO):
self.appid = appid
self.log_filename = 'log.log'
logging.basicConfig(level=loglevel,
format='%(... | Python |
'''
Created on May 22, 2011
@author: Dima
'''
import bossapi
N = 720000000L
#This Function returns number of results of keyword
#Using Boss Search Engine
def bossSearchResults(keyword):
searchval= keyword
appId = 'NDK5RxPV34EeYsgrmer5dNvgfQaQYuU4VYT._GHo.nxdkl_2502aXf5DcFpIe0PdYQ... | Python |
'''
Created on 22/05/2011
@author: Dima
'''
| Python |
'''
Created on 01/05/2011
@author: Eran_Z
'''
| Python |
'''
Created on 06/05/2011
@author: Eran_Z
populates the cache according to the input files
'''
from RSM.algorithm import imdb_m
from RSM.my_movies.models import Movie, SearchResult
from django.shortcuts import render_to_response
from RSM.util import printDebug, isLegalName
import string
import imdb
im... | Python |
'''
Created on 29/03/2011
@author: Eran_Z
Searching
'''
from RSM.my_movies.models import Movie, SearchResult
def searchSingle(term):
"""Returns number of hits for given term."""
return getattr(Movie.objects.get(title=term),'searchSingle')
def searchTogether(term1, term2):
"""Returns numb... | Python |
'''
Created on 27/03/2011
@author: Eran_Z
Feasibility study (main)
'''
import weights_m
import scores_m
def generateWeights(algorithm, context, world):
"""Generates a list of weights for the context items.
This is a list of numbers (preferrably positive)"""
return algorithm(context, world)... | Python |
#!python
"""Bootstrap setuptools installation
If you want to use setuptools in your package's setup.py, just include this
file in the same directory with it, and add this to the top of your setup.py::
from ez_setup import use_setuptools
use_setuptools()
If you want to require a specific version of setuptools... | Python |
#!/usr/bin/env python
"""
generatepot.py script.
This script generates the imdbpy.pot file, from the DTD.
Copyright 2009 H. Turgut Uyar <uyar@tekir.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundati... | Python |
#!/usr/bin/env python
"""
generatepot.py script.
This script generates the imdbpy.pot file, from the DTD.
Copyright 2009 H. Turgut Uyar <uyar@tekir.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundati... | Python |
#!/usr/bin/env python
"""
rebuildmo.py script.
This script builds the .mo files, from the .po files.
Copyright 2009 H. Turgut Uyar <uyar@tekir.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; e... | Python |
#!/usr/bin/env python
"""
rebuildmo.py script.
This script builds the .mo files, from the .po files.
Copyright 2009 H. Turgut Uyar <uyar@tekir.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; e... | Python |
"""
locale package (imdb package).
This package provides scripts and files for internationalization
of IMDbPY.
Copyright 2009 H. Turgut Uyar <uyar@tekir.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Fou... | Python |
"""
Movie module (imdb package).
This module provides the Movie class, used to store information about
a given movie.
Copyright 2004-2010 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the F... | Python |
"""
Person module (imdb package).
This module provides the Person class, used to store information about
a given person.
Copyright 2004-2010 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
th... | Python |
"""
Character module (imdb package).
This module provides the Character class, used to store information about
a given character.
Copyright 2007-2010 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publis... | Python |
"""
parser.sql.alchemyadapter module (imdb.parser.sql package).
This module adapts the SQLAlchemy ORM to the internal mechanism.
Copyright 2008-2010 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publish... | Python |
#-*- encoding: utf-8 -*-
"""
parser.sql.dbschema module (imdb.parser.sql package).
This module provides the schema used to describe the layout of the
database used by the imdb.parser.sql package; functions to create/drop
tables and indexes are also provided.
Copyright 2005-2010 Davide Alberani <da@erlug.linux.it>
... | Python |
"""
parser.sql.objectadapter module (imdb.parser.sql package).
This module adapts the SQLObject ORM to the internal mechanism.
Copyright 2008-2010 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published... | Python |
"""
parser.sql package (imdb package).
This package provides the IMDbSqlAccessSystem class used to access
IMDb's data through a SQL database. Every database supported by
the SQLObject _AND_ SQLAlchemy Object Relational Managers is available.
the imdb.IMDb function will return an instance of this class when
called wit... | Python |
"""
parser.http.movieParser module (imdb package).
This module provides the classes (and the instances), used to parse the
IMDb pages on the akas.imdb.com server about a movie.
E.g., for Brian De Palma's "The Untouchables", the referred
pages would be:
combined details: http://akas.imdb.com/title/tt0094226/combi... | Python |
"""
parser.http.personParser module (imdb package).
This module provides the classes (and the instances), used to parse
the IMDb pages on the akas.imdb.com server about a person.
E.g., for "Mel Gibson" the referred pages would be:
categorized: http://akas.imdb.com/name/nm0000154/maindetails
biography: ... | Python |
"""
parser.http.searchMovieParser module (imdb package).
This module provides the HTMLSearchMovieParser class (and the
search_movie_parser instance), used to parse the results of a search
for a given title.
E.g., for when searching for the title "the passion", the parsed
page would be:
http://akas.imdb.com/find?q=... | Python |
"""
parser.http.topBottomParser module (imdb package).
This module provides the classes (and the instances), used to parse the
lists of top 250 and bottom 100 movies.
E.g.:
http://akas.imdb.com/chart/top
http://akas.imdb.com/chart/bottom
Copyright 2009 Davide Alberani <da@erlug.linux.it>
This program is free... | Python |
"""
parser.http.searchKeywordParser module (imdb package).
This module provides the HTMLSearchKeywordParser class (and the
search_company_parser instance), used to parse the results of a search
for a given keyword.
E.g., when searching for the keyword "alabama", the parsed page would be:
http://akas.imdb.com/find?... | Python |
Subsets and Splits
SQL Console for ajibawa-2023/Python-Code-Large
Provides a useful breakdown of language distribution in the training data, showing which languages have the most samples and helping identify potential imbalances across different language groups.