GithubHelp home page GithubHelp logo

pressley's People

Contributors

kaitlin avatar

Stargazers

JT5D avatar Peter Neish avatar James Michael DuPont avatar

Watchers

Tom Lee avatar timball avatar Michael Stephens avatar Thom Neale avatar Paul Tagliamonte avatar Daniel Cloud avatar Zack Maril avatar Jacob Fenton avatar James Cloos avatar Corey Speisman avatar Miles Watkins avatar  avatar

pressley's Issues

line 1: htmlParseEntityRef: expecting ';'

Traceback (most recent call last):
File "/projects/pressley/src/pressley/pressley/releases/management/commands/scrape_releases.py", line 73, in handle
    self.scrape_releases(source)
File "/projects/pressley/src/pressley/pressley/releases/management/commands/scrape_releases.py", line 47, in scrape_releases
    scrape_release(source, feed, entry, link)
File "/projects/pressley/src/pressley/pressley/releases/scrape.py", line 26, in scrape_release
    body = get_link_content(link)
File "/projects/pressley/src/pressley/pressley/releases/scrape.py", line 14, in get_link_content
    (title, body) = readability_extract(response.content)
File "/projects/pressley/src/pressley/pressley/util.py", line 25, in readability_extract
    title_text = unicode(lxml.html.fromstring(doc.short_title()).text_content())
File "/projects/pressley/virt/local/lib/python2.7/site-packages/lxml/html/__init__.py", line 634, in fromstring
    doc = document_fromstring(html, parser=parser, base_url=base_url, **kw)
File "/projects/pressley/virt/local/lib/python2.7/site-packages/lxml/html/__init__.py", line 532, in document_fromstring
    value = etree.fromstring(html, parser, **kw)
File "lxml.etree.pyx", line 2753, in lxml.etree.fromstring (src/lxml/lxml.etree.c:54647)
File "parser.pxi", line 1578, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:82764)
File "parser.pxi", line 1457, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:81562)
File "parser.pxi", line 965, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:78232)
File "parser.pxi", line 569, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:74488)
File "parser.pxi", line 650, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:75379)
File "parser.pxi", line 599, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:74843)
XMLSyntaxError: line 1: htmlParseEntityRef: expecting ';'

object of type 'NoneType' has no len()

Traceback (most recent call last):
File "/projects/pressley/src/pressley/pressley/releases/management/commands/scrape_releases.py", line 73, in handle
    self.scrape_releases(source)
File "/projects/pressley/src/pressley/pressley/releases/management/commands/scrape_releases.py", line 47, in scrape_releases
    scrape_release(source, feed, entry, link)
File "/projects/pressley/src/pressley/pressley/releases/scrape.py", line 26, in scrape_release
    body = get_link_content(link)
File "/projects/pressley/src/pressley/pressley/releases/scrape.py", line 14, in get_link_content
    (title, body) = readability_extract(response.content)
File "/projects/pressley/src/pressley/pressley/util.py", line 25, in readability_extract
    title_text = unicode(lxml.html.fromstring(doc.short_title()).text_content())
File "/projects/pressley/virt/local/lib/python2.7/site-packages/readability/readability.py", line 124, in short_title
    return shorten_title(self._html(True))
File "/projects/pressley/virt/local/lib/python2.7/site-packages/readability/htmls.py", line 60, in shorten_title
    if title is None or len(title.text) == 0:
TypeError: object of type 'NoneType' has no len()

line 404: Unexpected end tag : p

Traceback (most recent call last):
File "/projects/pressley/src/pressley/pressley/releases/management/commands/scrape_releases.py", line 73, in handle
    self.scrape_releases(source)
File "/projects/pressley/src/pressley/pressley/releases/management/commands/scrape_releases.py", line 47, in scrape_releases
    scrape_release(source, feed, entry, link)
File "/projects/pressley/src/pressley/pressley/releases/scrape.py", line 26, in scrape_release
    body = get_link_content(link)
File "/projects/pressley/src/pressley/pressley/releases/scrape.py", line 14, in get_link_content
    (title, body) = readability_extract(response.content)
File "/projects/pressley/src/pressley/pressley/util.py", line 25, in readability_extract
    title_text = unicode(lxml.html.fromstring(doc.short_title()).text_content())
File "/projects/pressley/virt/local/lib/python2.7/site-packages/readability/readability.py", line 124, in short_title
    return shorten_title(self._html(True))
File "/projects/pressley/virt/local/lib/python2.7/site-packages/readability/readability.py", line 104, in _html
    self.html = self._parse(self.input)
File "/projects/pressley/virt/local/lib/python2.7/site-packages/readability/readability.py", line 108, in _parse
    doc = build_doc(input)
File "/projects/pressley/virt/local/lib/python2.7/site-packages/readability/htmls.py", line 18, in build_doc
    doc = lxml.html.document_fromstring(page_unicode.encode('utf-8', 'replace'), parser=utf8_parser)
File "/projects/pressley/virt/local/lib/python2.7/site-packages/lxml/html/__init__.py", line 532, in document_fromstring
    value = etree.fromstring(html, parser, **kw)
File "lxml.etree.pyx", line 2753, in lxml.etree.fromstring (src/lxml/lxml.etree.c:54647)
File "parser.pxi", line 1578, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:82764)
File "parser.pxi", line 1457, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:81562)
File "parser.pxi", line 965, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:78232)
File "parser.pxi", line 569, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:74488)
File "parser.pxi", line 650, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:75379)
File "parser.pxi", line 599, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:74843)
XMLSyntaxError: line 404: Unexpected end tag : p

TypeError: decode() argument 1 must be string, not None

Traceback (most recent call last):
File "/projects/pressley/src/pressley/pressley/releases/management/commands/scrape_releases.py", line 73, in handle
    self.scrape_releases(source)
File "/projects/pressley/src/pressley/pressley/releases/management/commands/scrape_releases.py", line 47, in scrape_releases
    scrape_release(source, feed, entry, link)
File "/projects/pressley/src/pressley/pressley/releases/scrape.py", line 26, in scrape_release
    body = get_link_content(link)
File "/projects/pressley/src/pressley/pressley/releases/scrape.py", line 14, in get_link_content
    (title, body) = readability_extract(response.content)
File "/projects/pressley/src/pressley/pressley/util.py", line 25, in readability_extract
    title_text = unicode(lxml.html.fromstring(doc.short_title()).text_content())
File "/projects/pressley/virt/local/lib/python2.7/site-packages/readability/readability.py", line 124, in short_title
    return shorten_title(self._html(True))
File "/projects/pressley/virt/local/lib/python2.7/site-packages/readability/readability.py", line 104, in _html
    self.html = self._parse(self.input)
File "/projects/pressley/virt/local/lib/python2.7/site-packages/readability/readability.py", line 108, in _parse
    doc = build_doc(input)
File "/projects/pressley/virt/local/lib/python2.7/site-packages/readability/htmls.py", line 17, in build_doc
    page_unicode = page.decode(enc, 'replace')
TypeError: decode() argument 1 must be string, not None

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.