使用'Mechanize'Ruby gem从网站中提取信息

时间:2013-07-13 19:31:58

标签: ruby screen-scraping nokogiri mechanize

我正在运行一项服务,用户可以从各种快递公司跟踪他们的包裹。现在我正在添加一个没有API的快递员,我可以在其中阅读跟踪信息。所以我将使用mechanize gem直接从他们的网站上获取。但是,我正在寻找的信息无处可寻。

示例网址:

http://www.postdanmark.dk/en/tracktrace/Pages/home.aspx?view=item&itemid=00257059831553798878

编辑:

以上网址有时会重定向到主页面,因此请改用此网址:

http://www.postdanmark.dk/en/tracktrace/Pages/home.aspx?view=item&itemid=00257059831553798878000257059831553798878

我想要提取的信息是:

<tr class="odd">
    <td>6/19/2013 10:10 AM</td><td>Døgnposten 339 Dognposten, Denmark</td><td>The shipment item has been delivered</td>
</tr>

或者更确切地说,我想要交货状态和日期:

2013年6月19日上午10:10 货件已交付

有人可以帮忙吗?

我的代码:

require 'mechanize'
agent = Mechanize.new
page = agent.get("http://www.postdanmark.dk/en/tracktrace/Pages/home.aspx?view=item&itemid=00257059831553798878")
pp page # =>

#<Mechanize::Page
 {url
  #<URI::HTTP:0x007f985a853b90 URL:http://www.postdanmark.dk/en/tracktrace/Pages/home.aspx>}
 {meta_refresh}
 {title "\r\n\t\r\n\tHome\r\n\r\n"}
 {iframes #<Mechanize::Page::Frame nil "">}
 {frames}
 {links
  #<Mechanize::Page::Link "Turn on more accessible mode" "#">
  #<Mechanize::Page::Link "Turn off more accessible mode" "#">
  #<Mechanize::Page::Link "Skip Ribbon Commands" "javascript:;">
  #<Mechanize::Page::Link "Skip to main content" "javascript:;">
  #<Mechanize::Page::Link "" "javascript:;">
  #<Mechanize::Page::Link "" "http://www.postdanmark.dk/en">
  #<Mechanize::Page::Link "" "http://www.postdanmark.dk/en">
  #<Mechanize::Page::Link
   "\r\n                            \r\n                            På dansk                            \r\n                        "
   "http://www.postdanmark.dk/da">
  #<Mechanize::Page::Link
   "\r\n                            \r\n                            About us                            \r\n                        "
   "#">
  #<Mechanize::Page::Link "" "#">
  #<Mechanize::Page::Link "About us" "/en/Om%20os/Pages/home.aspx">
  #<Mechanize::Page::Link
   "Company presentation"
   "/en/Om%20os/Virksomheden/Pages/home.aspx">
  #<Mechanize::Page::Link
   "Investor relations"
   "/en/Om%20os/Investor%20relations/Pages/home.aspx">
  #<Mechanize::Page::Link "Quality" "/en/Om%20os/kvalitet/Pages/home.aspx">
  #<Mechanize::Page::Link
   "Business partners"
   "/en/Om%20os/Business%20partners/Pages/home.aspx">
  #<Mechanize::Page::Link
   "Our responsibility"
   "/en/Om%20os/CSR/Pages/home.aspx">
  #<Mechanize::Page::Link "Press" "/en/Om%20os/Presse/Pages/home.aspx">
  #<Mechanize::Page::Link
   "\r\n                            \r\n                            Webshop                            \r\n                        "
   "http://www2.postdanmark.dk/netbutik">
  #<Mechanize::Page::Link
   "\r\n                            \r\n                            På dansk                            \r\n                        "
   "/da/">
  #<Mechanize::Page::Link "Log in" "#">
  #<Mechanize::Page::Link "" "#">
  #<Mechanize::Page::Link
   "Try Again"
   "javascript: PostenCos.Login.SetLoginFrame()">
  #<Mechanize::Page::Link
   "{Username}"
   "http://www.postdanmark.dk/en/tracktrace/Pages/home.aspx#">
  #<Mechanize::Page::Link "Log out" "/_layouts/signout.aspx">
  #<Mechanize::Page::Link "Private" "/en/Privat">
  #<Mechanize::Page::Link "Business communication" "/en/Erhvervspost">
  #<Mechanize::Page::Link "Market communication" "/en/Kommunikation">
  #<Mechanize::Page::Link "Logistics" "/en/Logistik">
  #<Mechanize::Page::Link
   "Track and traceCurrently selected"
   "/en/tracktrace/Pages/home.aspx">
  #<Mechanize::Page::Link
   "see list over countries"
   "/en/tracktrace/Pages/List-over-countries.aspx">
  #<Mechanize::Page::Link
   "see list over countries"
   "/da/Documents/Lister/landeliste-track-and-trace.pdf">
  #<Mechanize::Page::Link "Item ID" "javascript:void(0)">
  #<Mechanize::Page::Link "Reference" "javascript:void(0)">
  #<Mechanize::Page::Link "Cell phone number" "javascript:void(0)">
  #<Mechanize::Page::Link "" nil>
  #<Mechanize::Page::Link
   "\r\n                    How may I help you?\r\n                    "
   "#">
  #<Mechanize::Page::Link
   "\r\n                        \r\n                    "
   "#">
  #<Mechanize::Page::Link "" "javascript:openNewWindow();">
  #<Mechanize::Page::Link "" "#">
  #<Mechanize::Page::Link "skrivpost@post.dk" "mailto:skrivpost@post.dk">
  #<Mechanize::Page::Link "Temp QF" "#">
  #<Mechanize::Page::Link "{0}" nil>
  #<Mechanize::Page::Link "Find postal code and address" "#">
  #<Mechanize::Page::Link "Advanced search" "http://www.postdanmark.dk">
  #<Mechanize::Page::Link "{0}" nil>
  #<Mechanize::Page::Link "Track item" "#">
  #<Mechanize::Page::Link "Advanced search" "http://www.postdanmark.dk">
  #<Mechanize::Page::Link "{0}" nil>
  #<Mechanize::Page::Link
   "\r\n\t\t\t\t\r\n            "
   "http://www.postdanmark.dk/en">
  #<Mechanize::Page::Link
   "Contact us"
   "http://www.postdanmark.dk/en/kontakt_os/Pages/home.aspx">
  #<Mechanize::Page::Link "Private" "http://www.postdanmark.dk/en/Privat">
  #<Mechanize::Page::Link
   "Letters"
   "http://www.postdanmark.dk/en/Privat/Breve/Pages/home.aspx">
  #<Mechanize::Page::Link
   "Parcels"
   "http://www.postdanmark.dk/en/Privat/Pakker/Pages/home.aspx">
  #<Mechanize::Page::Link "Stamps" "https://www2.postdanmark.dk/netbutik/">
  #<Mechanize::Page::Link "More" "http://www.postdanmark.dk/en/Privat">
  #<Mechanize::Page::Link
   "Business Communication"
   "http://www.postdanmark.dk/en/Erhvervspost">
  #<Mechanize::Page::Link
   "Letters"
   "http://www.postdanmark.dk/en/Erhvervspost/Breve/Pages/Lettersize.aspx">
  #<Mechanize::Page::Link
   "E-services"
   "http://www.postdanmark.dk/en/Erhvervspost/E-services/Pages/home.aspx">
  #<Mechanize::Page::Link
   "Newspapers"
   "http://www.postdanmark.dk/en/Erhvervspost/Newspapers/Pages/home.aspx">
  #<Mechanize::Page::Link
   "Outsourcing"
   "http://www.postdanmark.dk/en/Erhvervspost/Outsourcing/Pages/home.aspx">
  #<Mechanize::Page::Link "More" "http://www.postdanmark.dk/en/Erhvervspost">
  #<Mechanize::Page::Link
   "Market Communication"
   "http://www.postdanmark.dk/en/Kommunikation">
  #<Mechanize::Page::Link
   "Direct Mail"
   "http://www.postdanmark.dk/en/Kommunikation/Direct%20Marketing/Pages/home.aspx">
  #<Mechanize::Page::Link
   "Electronic Communication"
   "http://www.postdanmark.dk/en/Kommunikation/Electronic%20Communication/Pages/home.aspx">
  #<Mechanize::Page::Link
   "Customer Dialogue and CRM"
   "http://www.postdanmark.dk/en/Kommunikation/Customer%20dialogue%20and%20CRM/Pages/home.aspx">
  #<Mechanize::Page::Link "More" "http://www.postdanmark.dk/en/Kommunikation">
  #<Mechanize::Page::Link "Logistics" "http://www.postdanmark.dk/en/Logistik">
  #<Mechanize::Page::Link "Express" "http://www.postdanmark.dk/en/Logistik/">
  #<Mechanize::Page::Link
   "Pallets"
   "http://www.postdanmark.dk/en/Logistik/Pallets/Pages/home.aspx">
  #<Mechanize::Page::Link
   "Parcels"
   "http://www.postdanmark.dk/en/Logistik/Pakker/Pages/home.aspx">
  #<Mechanize::Page::Link
   "Outsourcing"
   "http://www.postdanmark.dk/en/Logistik/Outsourcing/Pages/home.aspx">
  #<Mechanize::Page::Link "More" "http://www.postdanmark.dk/en/Logistik">}
 {forms
  #<Mechanize::Form
   {name "aspnetForm"}
   {method "POST"}
   {action "home.aspx"}
   {fields
    [hidden:0x3fcc29776818 type: hidden name: MSOWebPartPage_PostbackSource value: ]
    [hidden:0x3fcc2977b098 type: hidden name: MSOTlPn_SelectedWpId value: ]
    [hidden:0x3fcc2977bafc type: hidden name: MSOTlPn_View value: 0]
    [hidden:0x3fcc2977b840 type: hidden name: MSOTlPn_ShowSettings value: False]
    [hidden:0x3fcc2977b69c type: hidden name: MSOGallery_SelectedLibrary value: ]
    [hidden:0x3fcc2977b084 type: hidden name: MSOGallery_FilterString value: ]
    [hidden:0x3fcc2977a558 type: hidden name: MSOTlPn_Button value: none]
    [hidden:0x3fcc2977a134 type: hidden name: __REQUESTDIGEST value: 0x8B33445463DA37BF0185122BE4E290417418500A6E4C5D921650824C35A1F2584F6F044F07E59417B78428E2CDAF0A6D389D2517035D845DA3577782124BA2F7,13 Jul 2013 19:19:04 -0000]
    [hidden:0x3fcc2977f8dc type: hidden name: MSOSPWebPartManager_DisplayModeName value: Browse]
    [hidden:0x3fcc2977f5bc type: hidden name: MSOSPWebPartManager_ExitingDesignMode value: false]
    [hidden:0x3fcc2977ed74 type: hidden name: MSOWebPartPage_Shared value: ]
    [hidden:0x3fcc2977e9a0 type: hidden name: MSOLayout_LayoutChanges value: ]
    [hidden:0x3fcc2977e5cc type: hidden name: MSOLayout_InDesignMode value: ]
    [hidden:0x3fcc2977e180 type: hidden name: _wpSelected value: ]
    [hidden:0x3fcc29783f7c type: hidden name: _wzSelected value: ]
    [hidden:0x3fcc29783d74 type: hidden name: MSOSPWebPartManager_OldDisplayModeName value: Browse]
    [hidden:0x3fcc29783bd0 type: hidden name: MSOSPWebPartManager_StartWebPartEditingName value: false]
    [hidden:0x3fcc297837ac type: hidden name: MSOSPWebPartManager_EndWebPartEditing value: false]
    [hidden:0x3fcc29782668 type: hidden name: __VIEWSTATE value: /wEPDwUJNjM5MjU4MDQ4D2QWAmYPZBYCAgEPZBYEAgEPZBYCAgMPZBYCZg9kFgICAQ8WAh4TUHJldmlvdXNDb250cm9sTW9kZQspiAFNaWNyb3NvZnQuU2hhcmVQb2ludC5XZWJDb250cm9scy5TUENvbnRyb2xNb2RlLCBNaWNyb3NvZnQuU2hhcmVQb2ludCwgVmVyc2lvbj0xNC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj03MWU5YmNlMTExZTk0MjljAWQCAw9kFgYCAw9kFgYFJmdfN2NlYjVhOTBfZDk2NF80NDU4X2E1MzNfYTU0MDFmNWYzODNlD2QWAmYPZBYUAgEPFgIeBFRleHQFGTxhIGhy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LUv+TNAQLAxJ+cBAL+ovynDgLPotSnDgLAouynDgL4ooSnDgK2m+ugAgK2m+ugAgKg6ozjDgKg6ozjDgLLm7G2BQK/j979BAL/2MOKCALs5afrBwLrj4vzCQLrqPiWC56EDyaGeVoGZe8PmhJFVpzd/YLV]
    [text:0x3fcc2978780c type: text name: ctl00$m$g_9d0e16ab_1842_411b_81f3_f2e7cba6e233$ctl00$txtShipmentId value: ]
    [text:0x3fcc29786c68 type: text name: ctl00$m$g_9d0e16ab_1842_411b_81f3_f2e7cba6e233$ctl00$txtReference value: ]
    [text:0x3fcc29786330 type: text name: ctl00$m$g_9d0e16ab_1842_411b_81f3_f2e7cba6e233$ctl00$txtProductionNumber value: ]
    [text:0x3fcc2978ba24 type: text name: ctl00$m$g_9d0e16ab_1842_411b_81f3_f2e7cba6e233$ctl00$txtSmsNumber value: ]
    [text:0x3fcc2978b1dc type: text name: ctl00$m$g_9d0e16ab_1842_411b_81f3_f2e7cba6e233$ctl00$txtSmsNotification value: ]
    [text:0x3fcc2978e8dc type: text name: nw_pc_qf_addressField value: ]
    [text:0x3fcc2978e47c type: text name: nw_pc_qf_cityField value: ]
    [text:0x3fcc297934e0 type: text name: nw_ntt_qf_itemIdField value: ]
    [hidden:0x3fcc297929b4 type: hidden name: _wpcmWpid value: ]
    [hidden:0x3fcc29796b40 type: hidden name: wpcmVal value: ]
    [selectlist:0x3fcc2979fcf4 type:  name: ctl00$m$g_9d0e16ab_1842_411b_81f3_f2e7cba6e233$ctl00$ddlCountryCode value: DK]}
   {radiobuttons}
   {checkboxes}
   {file_uploads}
   {buttons
    [submit:0x3fcc297873ac type: submit name: ctl00$m$g_9d0e16ab_1842_411b_81f3_f2e7cba6e233$ctl00$btnSearchShipment value: Search]
    [submit:0x3fcc2978beac type: submit name: ctl00$m$g_9d0e16ab_1842_411b_81f3_f2e7cba6e233$ctl00$btnSearchReference value: Search]
    [submit:0x3fcc2978fbec type: submit name: ctl00$m$g_9d0e16ab_1842_411b_81f3_f2e7cba6e233$ctl00$btnSearchSMS value: Search]
    [imagebutton:0x3fcc2978ebfc type: image name:  value: ]
    [button:0x3fcc29793d50 type: button name: nw_pc_qf_searchButton value: Search]
    [button:0x3fcc29792fcc type: button name: nw_ntt_qf_searchButton value: Search]
    [button:0x3fcc297a7b20 type:  name:  value: ]}>
  #<Mechanize::Form
   {name nil}
   {method "GET"}
   {action "http://www.postdanmark.dk/en/Pages/Search.aspx"}
   {fields
    [hidden:0x3fcc297aeca4 type: hidden name: k value: ]
    [hidden:0x3fcc297ae8f8 type: hidden name: s value: dk_en]}
   {radiobuttons}
   {checkboxes}
   {file_uploads}
   {buttons}>}>

0 个答案:

没有答案