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

Character encoding - possible to set it? #65

Open
mesic opened this issue Oct 7, 2016 · 2 comments
Open

Character encoding - possible to set it? #65

mesic opened this issue Oct 7, 2016 · 2 comments

Comments

@mesic
Copy link

mesic commented Oct 7, 2016

I'm trying to parse a website however the characters are read wrong, probably due to the character setting. Is there any way this can be set?

@ruipgil
Copy link
Owner

ruipgil commented Oct 16, 2016

Yes, scraperjs uses request, you should refer back to it.

@PauloAmaroRamos
Copy link

PauloAmaroRamos commented Nov 21, 2017

Instead of a string for the url:
scraperjs.StaticScraper.create('http://www.somesite.com').scrape(...)

Use an object with the parameters url and encoding, like this:
scraperjs.StaticScraper.create({ url: 'http://www.somesite.com', encoding: "binary" }).scrape(...)

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