Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

140
Visualizações
How to by pass Javascript check while hitting an URL in Postman or HttpLibrary?

I'm trying to hit an URL and upon hitting that I will hit consecutive URLs.

Both in Postman and Ruby (I'm using NET HTTP), I'm getting an error saying, "enable Javascript for website to function properly".

But in browser, everything works fine. In browser, if I turn off javascript, I see the same error.

Question: Is it possible to simulate same browser experience in Postman or Ruby NET:HTTP ?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

No, it's not possible. Not with NET::HTTP. You actually need to run the browser. But you can run it in a headless mode!

Fortunately, in Ruby there are some great gems that allow you to achieve that. Myself, I most often use Ferrum, which runs Chromium in the background and allows you to interface with the website using an extended Nokogiri API. Ferrum uses the CDP protocol to interface with Chromium and possibly Firefox.

In the past I have used Watir which basically wraps Selenium WebDriver with a nicer API and works with all the browsers. Your mileage may vary with this, I had a lot easier time with Ferrum and Ferrum provides a Nokogiri-compatible API, while Watir doesn't. On the other hand, Watir is a lot more mature.

I have tried puppeteer-ruby, which is mostly a port of the JavaScript puppeteer library. Like Ferrum, it also uses the CDP interface, but it may provide a better support than Ferrum for various features, because as a port of puppeteer, it contains a lot of knowledge that was put into puppeteer which is widely used. It's quite new, but very interesting.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda