diff --git a/lib/docs/filters/python/entries.rb b/lib/docs/filters/python/entries.rb index b2054b41..16fb712e 100644 --- a/lib/docs/filters/python/entries.rb +++ b/lib/docs/filters/python/entries.rb @@ -16,7 +16,7 @@ module Docs def get_name name = at_css('h1').content name.sub! %r{\A[\d\.]+ }, '' # remove list number - name.sub! %r{ \u{2014}.+\z}, '' # remove text after em dash + name.sub! %r{ [\u{2013}\u{2014}].+\z}, '' # remove text after em/en dash name end @@ -27,6 +27,8 @@ module Docs if type == 'The Python Standard Library' type = at_css('h1').content + elsif type.include?('I/O') || %w(select selectors).include?(name) + type = 'Input/ouput' elsif type.start_with? '19' type = 'Internet Data Handling' end diff --git a/lib/docs/scrapers/python.rb b/lib/docs/scrapers/python.rb index e8b5c5de..a669135b 100644 --- a/lib/docs/scrapers/python.rb +++ b/lib/docs/scrapers/python.rb @@ -1,6 +1,6 @@ module Docs class Python < FileScraper - self.version = '3.3.5' + self.version = '3.4.0' self.type = 'sphinx' self.dir = '/Users/Thibaut/DevDocs/Docs/Python' # downloaded from docs.python.org/3/download.html self.base_url = 'http://docs.python.org/3/'