Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

105
Vistas
Beautiful Soup returns only javaScript Code?

I want to scrape data from the following website. https://dell.secure.force.com/FAP/?c=de&l=de&pt=findareseller I tried to get data from the network tab but it returns nothing. Then I tried BeautifulSoup to get some data but it returns only Javascript with empty tbody tags. But in inspect element, it shows the data in a table.

import requests
from bs4 import BeautifulSoup
url = 'https://dell.secure.force.com/FAP'
headers = {
   'Connection': 'keep-alive'
   }
data = {
'pt': "findareseller"
   }
page = requests.get(url, params= data)
soup = BeautifulSoup(page.text, 'html.parser')
soup.find_all('table') # returns only javascript code.

Can someone help, how can I scrape the data?

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

soup.find_all('table') returns a list with all table elements.

So to find your specific element you should try to find some distinct properties that makes it different from all the other tables (like an id or class).

To access the elements attributes use t[0].attrs to get a list of them and for example: t[0]["width"] to access them.

Also: By using soup.select('table') instead, you can use css selectors as the string input, so you won't have to deal with beautifulsoups functions.

about 4 years ago · Juan Pablo Isaza Denunciar

0

Thank you all. I figure out the answer. I use network search to fetch any search requests. I found the search URL, to confirm if the URL was right, I double-clicked it and it returns the exact same page. so I copy the bash code and past it into POSTMAN as import "RAW TEXT". I find out it actually uses post requests. After using post request, I was able to fetch the data I needed. below is the request with POST.

response = requests.request("POST", url, headers=headers, data=payload)

then I use BeautifulSoup as soup.

st = soup.find('input')['value'] # returns data I needed
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda