Giter Site home page Giter Site logo

anupt-flightscraper's People

Contributors

gobid avatar tiwarianup avatar

Watchers

 avatar  avatar  avatar  avatar

anupt-flightscraper's Issues

More than one flight cost is coming in flightcost tag

For every flight box MMT is showing two price and because of which flight cost is not scrapping correctly. For example: The length of all tags are as:

baseDataUrl = https://www.makemytrip.com/flight/search?tripType=O&itinerary=COK-MAA-30/03/2020&paxType=A-1_C-0_I-0&cabinClass=E&sTime=1584701522034&forwardFlowRequired=true

            print(len(spanFlightName))  - 36
            print(len(pFlightCode)) - 36
            print(len(pFlightStop)) - 36
            print(len(divDeptTime))-36
            print(len(pDeptCity))-36
            print(len(pFlightDuration))-36
            print(len(pArrivalTime))-36
            print(len(pArrivalCity))-36
            **print(len(spanFlightCost))-    102** Problem is with this tag

Corresponding tag is:
spanFlightCost = soupBody.findAll("span", class_= "actual-price")
Now above tag leads to two different Xpath

/html/body/div[1]/div/div[2]/div[2]/div[2]/div[1]/div[3]/div/div[2]/div[3]/div[1]/div[2]/div[2]/div/p/span
/html/body/div[1]/div/div[2]/div[2]/div[2]/div[1]/div[3]/div/div[2]/div[3]/div[2]/div[2]/div[2]/div/p/span

Problem is with the bold div. Request you to check and advise the way to sort this out.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.