Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

ranon-rat/memedroidWebScrapingGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

memedroidWebScrapingGo

its a simple web scrapper who extract memes from the page memedroid

you can use it in your webpage because its a simple api.

the body of the api

{
	"memes": [
		{
			"title": "Going all in ",
			"imageURL": "https://images3.memedroid.com/images/UPLOADED932/60089f759e36b.jpeg"
		},
		{
			"title": "Caveman be like ",
			"imageURL": "https://images3.memedroid.com/images/UPLOADED190/6008a00f7630b.jpeg"
		},
		{
			"title": "DAMN JACKAL SNIPERS ",
			"imageURL": "https://images7.memedroid.com/images/UPLOADED289/60089fd1ade02.jpeg"
		}
	]
}

example to work with the api with js

fetch("https://webscrappingwithgolang.pythonboy123.repl.co/")// made the request
.then(r=>r.json())// decode the request into a json
.then(d=>{
	
	d.memes.map(i=>{
	// then go through the array
		console.log(`
		${i.title}
		${i.imageURL}
		`);// and print the array
	})

})
.catch(e=>console.log(e))// if something happend

Releases

No releases published

Packages

No packages published

Languages