Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrapy-Splash not rendering this site #281

Open
MarkBorodin opened this issue Feb 7, 2021 · 2 comments
Open

Scrapy-Splash not rendering this site #281

MarkBorodin opened this issue Feb 7, 2021 · 2 comments

Comments

@MarkBorodin
Copy link

Javascript not rendering at https://iwilltravelagain.com/latin-america-caribbean/?page=1
Can you tell me what could be the problem?

my settings:

SPLASH_URL = 'http://localhost:8050'


DOWNLOADER_MIDDLEWARES = {
    'scrapy_splash.SplashCookiesMiddleware': 723,
    'scrapy_splash.SplashMiddleware': 725,
    'scrapy.downloadermiddlewares.httpcompression.HttpCompressionMiddleware': 810,
}

SPIDER_MIDDLEWARES = {
    'scrapy_splash.SplashDeduplicateArgsMiddleware': 100,
}

DUPEFILTER_CLASS = 'scrapy_splash.SplashAwareDupeFilter'

HTTPCACHE_STORAGE = 'scrapy_splash.SplashAwareFSCacheStorage'

ROBOTSTXT_OBEY = False

docker:

docker run -p 8050:8050 scrapinghub/splash --disable-private-mode

spider:

class MyspiderSpider(scrapy.Spider):
    name = 'myspider1'
    start_urls = ['https://iwilltravelagain.com/australia-new-zealand-asia/']

    def start_requests(self):
        for url in self.start_urls:
            yield SplashRequest(url=url, callback=self.parse, args={'wait': 9.0})

    def parse(self, response, **kwargs):
        print(response.body)

This works with other sites.

If you look through http://localhost:8050 - the page is also rendered without js.
What am I doing wrong?

@MADDY312
Copy link

hey samething, have you fixed this?

@chaoranxie
Copy link

having similar issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants