Flight search automation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • George Sakkis

    #1

    Flight search automation

    I'm trying to use mechanize to fill in a "find a flight" form and then
    get back the results, but I'm not sure how to make it wait until the
    results page appears; the response after submitting the form is the
    "please wait while we are searching for your flights" page. Any ideas ?

    George

  • mkPyVS

    #2
    Re: Flight search automation

    Is there an http page redirect call to the client once the java
    releases it's wait que?

    George Sakkis wrote:[color=blue]
    > I'm trying to use mechanize to fill in a "find a flight" form and then
    > get back the results, but I'm not sure how to make it wait until the
    > results page appears; the response after submitting the form is the
    > "please wait while we are searching for your flights" page. Any ideas ?
    >
    > George[/color]

    Comment

    • George Sakkis

      #3
      Re: Flight search automation

      mkPyVS wrote:
      [color=blue]
      > Is there an http page redirect call to the client once the java
      > releases it's wait que?[/color]

      Sorry, I've no idea.. not even sure if they use java or whether this
      matters. Can you guess by trying, say, http://www.travelocity.com/ ?
      Expedia and Orbitz have also a waiting page, hopefully I can figure
      them out once I have one working.

      George
      [color=blue]
      > George Sakkis wrote:[color=green]
      > > I'm trying to use mechanize to fill in a "find a flight" form and then
      > > get back the results, but I'm not sure how to make it wait until the
      > > results page appears; the response after submitting the form is the
      > > "please wait while we are searching for your flights" page. Any ideas ?
      > >
      > > George[/color][/color]

      Comment

      • mkPyVS

        #4
        Re: Flight search automation

        If you look at the <<TRAVELOCITY >> generated HTML @Travelocity

        **Snippet
        function on_load()
        {
        var finurl = "AirSearch.do?S EQ=115108633384 85232006";
        window.location .replace(finurl );
        **
        It is basically a re-direct.. you should be able to re-request an HTTP
        to the base path from the original query w/ your new URL for the
        session result.
        Base URL= http://travel.travelocity.com/flights
        So now you would request


        George Sakkis wrote:[color=blue]
        > mkPyVS wrote:
        >[color=green]
        > > Is there an http page redirect call to the client once the java
        > > releases it's wait que?[/color]
        >
        > Sorry, I've no idea.. not even sure if they use java or whether this
        > matters. Can you guess by trying, say, http://www.travelocity.com/ ?
        > Expedia and Orbitz have also a waiting page, hopefully I can figure
        > them out once I have one working.
        >
        > George
        >[color=green]
        > > George Sakkis wrote:[color=darkred]
        > > > I'm trying to use mechanize to fill in a "find a flight" form and then
        > > > get back the results, but I'm not sure how to make it wait until the
        > > > results page appears; the response after submitting the form is the
        > > > "please wait while we are searching for your flights" page. Any ideas ?
        > > >
        > > > George[/color][/color][/color]

        Comment

        Working...