Topics
Orb
Propose
My VotaVox
Login
|
Register
About Us
Dedicated to delivering public opinion to people in power.
More like this
Less like this
It should be legal to teach creationism in public schools.
Proposed by: Anonymous
Bookmark:
Notifications
Share This
Demographics
Agree
Disagree
638 Votes so far
Time Left: 3 months, 3 weeks
Decision Makers:
US Congress
X
VOTE on It should be legal to teach creationism in public schools.:
Disagree
VOTE on It should be legal to teach creationism in public schools.:
Disagree
Python 2.6.2: /usr/local/bin/python Tue Sep 7 22:58:45 2010 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /var/www/www.votavox.com/VotaVox/topics/media.py in clean(embed_code=u'http://www.youtube.com/watch?v=V_znfn0GJe0') 106 107 if embed_code[:4] == "http": 108 scraper = auto_scrape(embed_code) 109 embed_code = scraper["embed"] 110 scraper undefined global auto_scrape =
embed_code = u'http://www.youtube.com/watch?v=V_znfn0GJe0' /var/www/www.votavox.com/VotaVox/vidscraper/__init__.py in auto_scrape(url=u'http://www.youtube.com/watch?v=V_znfn0GJe0', fields=None) 40 for suite in AUTOSCRAPE_SUITES: 41 if suite['regex'].match(url): 42 return scrape_suite(url, suite, fields) 43 44 # If we get here that means that none of the regexes matched, so global scrape_suite =
url = u'http://www.youtube.com/watch?v=V_znfn0GJe0' suite = {'funcs': {'description':
, 'embed':
, 'flash_enclosure_url':
, 'publish_date':
, 'tags':
, 'thumbnail_url':
, 'title':
}, 'regex': <_sre.SRE_Pattern object at 0x2ac8a90>} fields = None /var/www/www.votavox.com/VotaVox/vidscraper/__init__.py in scrape_suite(url=u'http://www.youtube.com/watch?v=V_znfn0GJe0', suite={'funcs': {'description':
, 'embed':
, 'flash_enclosure_url':
, 'publish_date':
, 'tags':
, 'thumbnail_url':
, 'title':
}, 'regex': <_sre.SRE_Pattern object at 0x2ac8a90>}, fields=['description', 'flash_enclosure_url', 'tags', 'title', 'thumbnail_url', 'publish_date', 'embed']) 32 except KeyError: 33 continue 34 scraped_data[field] = func(url, shortmem=shortmem) 35 36 return scraped_data scraped_data = {'description': u'', 'flash_enclosure_url': u'http://www.youtube.com/watch?v=V_znfn0GJe0', 'tags': [u'News', u'newsnight', u'intelligent', u'design', u'creationism', u'paxman', u'evolution', u'debate', u'science', u'News', u'newsnight, intelligent, design, creationism, paxman, evolution, debate, science']} field = 'title' func =
url = u'http://www.youtube.com/watch?v=V_znfn0GJe0' shortmem = {'base_etree':
, 'parsed_feed': {'feed': {}, 'status': 200, 'updated': time.stru...: u'2006-11-28T21:21:16.000Z', 'feedlink': u''}]}} /var/www/www.votavox.com/VotaVox/vidscraper/decorators.py in new_scraper_func(url=u'http://www.youtube.com/watch?v=V_znfn0GJe0', shortmem={'base_etree':
, 'parsed_feed': {'feed': {}, 'status': 200, 'updated': time.stru...: u'2006-11-28T21:21:16.000Z', 'feedlink': u''}]}}, *args=(), **kwargs={}) 8 shortmem = {} 9 10 return scraper_func(url, shortmem=shortmem, *args, **kwargs) 11 12 return new_scraper_func scraper_func =
url = u'http://www.youtube.com/watch?v=V_znfn0GJe0' shortmem = {'base_etree':
, 'parsed_feed': {'feed': {}, 'status': 200, 'updated': time.stru...: u'2006-11-28T21:21:16.000Z', 'feedlink': u''}]}} args = () kwargs = {} /var/www/www.votavox.com/VotaVox/vidscraper/decorators.py in new_scraper_func(url=u'http://www.youtube.com/watch?v=V_znfn0GJe0', shortmem={'base_etree':
, 'parsed_feed': {'feed': {}, 'status': 200, 'updated': time.stru...: u'2006-11-28T21:21:16.000Z', 'feedlink': u''}]}}, *args=(), **kwargs={}) 18 shortmem['base_etree'] = lxml_html.parse(url) 19 20 return scraper_func(url, shortmem=shortmem, *args, **kwargs) 21 22 return new_scraper_func scraper_func =
url = u'http://www.youtube.com/watch?v=V_znfn0GJe0' shortmem = {'base_etree':
, 'parsed_feed': {'feed': {}, 'status': 200, 'updated': time.stru...: u'2006-11-28T21:21:16.000Z', 'feedlink': u''}]}} args = () kwargs = {} /var/www/www.votavox.com/VotaVox/vidscraper/decorators.py in new_scraper_func(url=u'http://www.youtube.com/watch?v=V_znfn0GJe0', shortmem={'base_etree':
, 'parsed_feed': {'feed': {}, 'status': 200, 'updated': time.stru...: u'2006-11-28T21:21:16.000Z', 'feedlink': u''}]}}, *args=(), **kwargs={}) 25 def returns_unicode(scraper_func): 26 def new_scraper_func(url, shortmem=None, *args, **kwargs): 27 result = scraper_func(url, shortmem=shortmem, *args, **kwargs) 28 29 if result is not None: result undefined scraper_func =
url = u'http://www.youtube.com/watch?v=V_znfn0GJe0' shortmem = {'base_etree':
, 'parsed_feed': {'feed': {}, 'status': 200, 'updated': time.stru...: u'2006-11-28T21:21:16.000Z', 'feedlink': u''}]}} args = () kwargs = {} /var/www/www.votavox.com/VotaVox/vidscraper/sites/youtube.py in scrape_title(url=u'http://www.youtube.com/watch?v=V_znfn0GJe0', shortmem={'base_etree':
, 'parsed_feed': {'feed': {}, 'status': 200, 'updated': time.stru...: u'2006-11-28T21:21:16.000Z', 'feedlink': u''}]}}) 30 "//div[@id='watch-vid-title']/h1")[0].text 31 except IndexError: 32 raise errors.FieldNotFound('Could not find the title field') 33 34 global errors =
errors.FieldNotFound =
: Could not find the title field __class__ =
__delattr__ =
__dict__ = {} __doc__ = None __format__ =
__getattribute__ =
__getitem__ =
__getslice__ =
__hash__ =
__init__ =
__module__ = 'vidscraper.errors' __new__ =
__reduce__ =
__reduce_ex__ =
__repr__ =
__setattr__ =
__setstate__ =
__sizeof__ =
__str__ =
__subclasshook__ =
__unicode__ =
__weakref__ = None args = ('Could not find the title field',) message = 'Could not find the title field' The above is a description of an error in a Python program. Here is the original traceback: Traceback (most recent call last): File "/var/www/www.votavox.com/VotaVox/topics/media.py", line 108, in clean scraper = auto_scrape(embed_code) File "/var/www/www.votavox.com/VotaVox/vidscraper/__init__.py", line 42, in auto_scrape return scrape_suite(url, suite, fields) File "/var/www/www.votavox.com/VotaVox/vidscraper/__init__.py", line 34, in scrape_suite scraped_data[field] = func(url, shortmem=shortmem) File "/var/www/www.votavox.com/VotaVox/vidscraper/decorators.py", line 10, in new_scraper_func return scraper_func(url, shortmem=shortmem, *args, **kwargs) File "/var/www/www.votavox.com/VotaVox/vidscraper/decorators.py", line 20, in new_scraper_func return scraper_func(url, shortmem=shortmem, *args, **kwargs) File "/var/www/www.votavox.com/VotaVox/vidscraper/decorators.py", line 27, in new_scraper_func result = scraper_func(url, shortmem=shortmem, *args, **kwargs) File "/var/www/www.votavox.com/VotaVox/vidscraper/sites/youtube.py", line 32, in scrape_title raise errors.FieldNotFound('Could not find the title field') FieldNotFound: Could not find the title field
VOTE on It should be legal to teach creationism in public schools.:
Disagree
Add media to VotaVox:
Paste an embed code or URL from
YouTube
,
Google Video
,
Blip.tv
or
Vimeo
Embed our Voting Widget
Add your site's name to the voting widget.
Add site name (optional):
Embed Code:
(embed code will update)
Ask Someone You Know
Please
login
or
register
.
Translate
Please
login
to translate.
Notifications
Please
login
to set notifications.