Jump to content

Web Scrape - GoFundMe

Hi all,

 

Just wondering would anyone know how to scrape the goal and currently raised of a GoFundMe page?

 

Either with php or JQuery?

 

Thanks.

Link to comment
Share on other sites

Link to post
Share on other sites

just done this in the browser console

const rasied = document.getElementsByClassName('m-progress-meter-heading');
const [amount, ...parts] = rasied[0].textContent.split(' ');
const total = parts.join(' ');
console.log({
	amount,
    total
})

will print 

{amount: "$2,401,380", total: "raised of $2,450,000 target"}



 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×