web-scraping-course's People
Forkers
wwiicode ppln nicexipi kopisg admond1994 josephkokchin afzalindian skalluri01 hoccpan janeminmin ankitjaadoo joca88 mohankc mis7ern9o laniakean berweb lami484 swillison99 lgrosu ibeefer carlosandres12 rajeevamatya funnygoofy burton-david pratikio hncuong1978 juracyamerico verifitim hamzarabi rakibulhasan19 meganeden davitgadyan basudab moussa18 mahmudmihon abdupa imutk somanathsankaran choudharynishu nazrul-github wesley-jellett r4j4n gmontana77 botmasterza admariner book-source mutluwindows sami10644 senior-web-engineer johno883 mutlumonster andrewsamson01 omsharma43 dsimranahmedani jeankobeisweb-scraping-course's Issues
Thanks Rafik
Thanks a lot Rafik
Warm Regards,
Hiran
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.