Git Product home page Git Product logo

web-scraping-course's People

Contributors

rafikahmed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

web-scraping-course's Issues

infinite scroll pagination

Hi Ahmed,
Thanks for the prompt reply for a previous query that I posted in your GitHub account.
Right now, I am facing another issue with dynamic pagination. I was trying to replicate the Airbnb.com example and wanted to do similar activity in holidayiq.com.
My objective is to scrape the review comments for one location in Holidayiq.com.

The url is : https://www.holidayiq.com/page/Rohtang-Pass-Manali-Sightseeing-451-8189-p2.html

When I try to open the fetch type in XHR to a new tab to get the json file it throws an error. I am unable to proceed. Could you please help me resolve this issue.

Thanks in advance,
Hiran

Issue while scraping

Hi Ahmed,

I was trying to scrape a website to extract data as part of learning . Th problem is that I am unable to extract the url's correctly.

I am pasting the code for your kind perusal.
=====> code begins
import scrapy

class GoodReadsSpider(scrapy.Spider):
#identity
name = "holidayiqmp"

#Request
start_urls= [
    'https://www.holidayiq.com/Manali-Sightseeing-451.html'
]

#Response
def parse(self, response):
    for holiday in response.selector.xpath("//div[@class='media-body']"):
                        
        yield {
            
            'Name': holiday.xpath(".//h2[@class='media-heading']/text()").extract_first(),
            'Type': holiday.xpath(".//h2[@class='media-heading']//span/text()").extract_first(),
            'url' : holiday.xpath("//div[@class='infinite-scroll-example__scrollable-parent wpscroll']/div/a/@href").extract(),
            
        }

<=======Code ends.

I an able to get Name and Type as expected. I am having problems with URL's.
Please help me resolve this.
Thanks,
Hiran

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.