Anonyfox / elixir-scrape

Scrape any website, article or RSS/Atom Feed with ease!
https://github.com/Anonyfox/elixir-scrape
GNU Lesser General Public License v3.0
327 stars 43 forks source link

Error on try to parse pub_date for determined format #20

Closed eduardonunesp closed 7 years ago

eduardonunesp commented 7 years ago

The following format "2016-11-12T20:24:08-07:00" on pub date causes an error

You can try the URL http:/x/feeds.feedburner.com/apple/fBmy

Interactive Elixir (1.3.4) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> Scrape.feed "http:/x/feeds.feedburner.com/apple/fBmy"

** (EXIT from #PID<0.269.0>) an exception was raised:
    ** (ArgumentError) argument error
        (stdlib) :ets.lookup(:tzdata_current_release, :release_version)
        lib/tzdata/release_reader.ex:41: Tzdata.ReleaseReader.current_release_from_table/0
        lib/tzdata/release_reader.ex:13: Tzdata.ReleaseReader.simple_lookup/1
        lib/tzdata/release_reader.ex:7: Tzdata.ReleaseReader.zone_and_link_list/0
        lib/tzdata.ex:61: Tzdata.zone_exists?/1
        lib/timezone/timezone.ex:112: Timex.Timezone.name_of/1
        lib/timezone/timezone.ex:165: Timex.Timezone.do_get/3
        lib/parse/datetime/parser.ex:107: Timex.Parse.DateTime.Parser.do_parse/3
Anonyfox commented 7 years ago

with version 2.0 it seems to work now. I just deleted the 'x' in your URL since this is invalid http://feeds.feedburner.com/apple/fBmy