Answer the question
In order to leave comments, you need to log in
How to get the html code of the page to be parsed?
I need to parse a page: https://www.controller.com
I'm
using nokogiri. I make a request:
page = Nokogiri::HTML(open('https://www.controller.com'))
fetch('https://www.controller.com/listings/aircraft/for-sale/list/category/6/piston-single-aircraft', {method: 'GET',mode: 'no-cors'})
.then(function(response) {
console.log(response);
return response;
})
.then(function(text) {
console.log('Request successful', text);
})
.catch(function(error) {
log('Request failed', error)
});
Answer the question
In order to leave comments, you need to log in
If this is an order from freelance for a pack of doshirak, then it’s better to just refuse. Owners strongly do not want to be parsed.
UserReferrer=https://toster.ru/q/583813
. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question