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

183
Visualizações
How to get plain html content with images from wikipedia API

I am trying to get html content with all images from wikipeida using wikipeida's official API. Currently, The api i use only return html content

This is what i am Using

https://en.wikipedia.org/w/api.php?action=query&prop=extracts&titles=google&format=json&origin=*

Thanks in advance 🙏

about 4 years ago · Santiago Gelvez
1 Respostas
Responde à pergunta

0

You can get text and images using the following query example

https://en.wikipedia.org/w/api.php?action=parse&prop=text|images&page=google&format=json&origin=*

Then for each image, you can get the url, which can be used to download the image. For example

https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=imageinfo&titles=File%3ASemi-protection-shackle.svg&iiprop=url

Another example to get urls for all images on a page

https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=imageinfo&rawcontinue=1&titles=google&generator=images&iiprop=url
about 4 years ago · Santiago Gelvez 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