Skip to content
Advertisement

Google script – parse HTML from Website Forum – and Write Data to Sheet

I’m getting HTML from a forum url, and parsing the post count of the user from their profile page. I don’t know how to write the parsed number into the Google spreadsheet.

It should go account by account in column B till last row and update the column A with count.

The script doesn’t give me any errors, but it doesn’t set the retrieved value into the spreadsheet.

JavaScript

The is the first time I’m doing something like this and working from an example from other site.

I have one more question. In function getPostCount I send the function profileurl. Where do I declare that ?

Advertisement

Answer

Here is how you get the URL out of the spreadsheet:

JavaScript

You’re missing var in front of one of your variables:

JavaScript

That won’t work. Need to put var in front. var postCount = ....

In this function:

JavaScript

There is no array named arguments anywhere in your code. Where is arguments defined and how is it getting any values put into it?

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement