Menu

#3 GOOGLE, METAR, TAF, and WEATHER commands broken.

8rc4
done
onefang
None
high
2014-03-10
2006-12-12
onefang
No

The google command returns nothing. Likely google have changed things, again. Same applies to all the other web scraping commands. Fair enough, web page scraping is fragile.

Related

Bugs: #18

Discussion

  • onefang

    onefang - 2014-02-24
    • Milestone: --> 8rc4
    • Priority: 5 --> high
     
  • onefang

    onefang - 2014-02-24

    I think all the web scraping functions are broken. Might be better to replace them with what ever sort of web API the various web sites provide. Might also be good to replace them all with a generic Lua thing if we add Lua scripting.

    Either way, until we move to using web API (a big job) any fixes here will be temporary, as web page scraping is fragile.

     
  • onefang

    onefang - 2014-03-09
    • summary: google comand broken. --> GOOGLE, METAR, TAF, and WEATHER commands broken.
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1 @@
    -The google command returns nothing.  Likely google have changed things, again.
    +The google command returns nothing.  Likely google have changed things, again.  Same applies to all the other web scraping commands.  Fair enough, web page scraping is fragile.
    
     
  • onefang

    onefang - 2014-03-09

    They all need to be addressed to the bot.

    WEATHER works fine.

    METAR and TAF use the same web site, which has changed, but now they have a new XML based API - http://www.aviationweather.gov/adds/dataserver

    GOOGLE got complicated, lots of javascript and stuff to wade through, but they might have an API.

     
  • onefang

    onefang - 2014-03-09

    https://duckduckgo.com/api seems OK, though it's not a web search engine as such. It does provide "instant answers", which fits better with what Darkbot does. On the other hand, the result for http://api.duckduckgo.com/?q=darkbot&format=xml leaves a lot to be desired. lol

     
  • onefang

    onefang - 2014-03-09

    We will go with converting METAR and TAF to use their new XML API, and using XML with duckduckgo. I can reuse my XMLame parser I wrote long ago.

     
  • onefang

    onefang - 2014-03-09
    • status: open --> working-on-it
    • assigned_to: David Seikel
     
  • onefang

    onefang - 2014-03-10
    • status: working-on-it --> done
     

Log in to post a comment.