Using a Ruby script to login to a website via https

后端 未结 3 1929
醉梦人生
醉梦人生 2021-01-30 09:28

Alright, so here\'s the dealio: I\'m working on a Ruby app that\'ll take data from a website, and aggregate that data into an XML file.

The website I need to take data f

3条回答
  •  半阙折子戏
    2021-01-30 10:04

    For what it's worth, you could check out Webrat. It is meant to be used a tool for automated acceptance tests, but I think you could use it to simulate filling out the login fields, then click through links by their names, and grab the needed HTML as a string. Haven't tried doing anything like it, tho.

提交回复
热议问题