Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in title extractor #194

Open
nargiza-sarkulova opened this issue Jan 8, 2015 · 6 comments
Open

Error in title extractor #194

nargiza-sarkulova opened this issue Jan 8, 2015 · 6 comments

Comments

@nargiza-sarkulova
Copy link

I'm having this error with this and few other websites http://nguyenminhson.vxartgallery.com/
File "/home/nargiza/virtualenvs/myenv/local/lib/python2.7/site-packages/goose_extractor-1.0.25-py2.7.egg/goose/extractors/title.py", line 56, in clean_title
if title_words[0] in TITLE_SPLITTERS:
exceptions.IndexError: list index out of range

@lsemel
Copy link
Contributor

lsemel commented Mar 26, 2015

I'm also encountering this same error.

@yang
Copy link

yang commented Jun 9, 2015

Ditto!

@blakeapm
Copy link

Getting the same error as well.

@daTokenizer
Copy link

same here:

article = goose.extract(raw_html = data)
  File "/usr/local/lib/python2.7/dist-packages/goose/__init__.py", line 56, in extract return self.crawl(cc)
  File "/usr/local/lib/python2.7/dist-packages/goose/__init__.py", line 66, in crawl
    article = crawler.crawl(crawl_candiate)
  File "/usr/local/lib/python2.7/dist-packages/goose/crawler.py", line 154, in crawl
    self.article.title = self.title_extractor.extract()
  File "/usr/local/lib/python2.7/dist-packages/goose/extractors/title.py", line 99, in extract
    return self.get_title()
  File "/usr/local/lib/python2.7/dist-packages/goose/extractors/title.py", line 78, in get_title
    return self.clean_title(title)
  File "/usr/local/lib/python2.7/dist-packages/goose/extractors/title.py", line 56, in clean_title
    if title_words[0] in TITLE_SPLITTERS:
IndexError: list index out of range

@grigy
Copy link

grigy commented Jun 2, 2016

Same here

@jlucier
Copy link

jlucier commented Jun 27, 2016

Bump. Seeing the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants