How to Retrieve All Members of a Google Group via JavaScript
The JavaScript language lets you automate some tasks that import and "scrape" data from an external Web page. You can use JavaScript to obtain a list of email addresses from your Google Groups private forum. You must obtain the link to the Groups management page, and use it in your JavaScript script. JavaScript crawls the page, reads the data and exports it to a file or displays it on your own Web page.
Instructions
-
-
1
Open a Web page and log into your Google Groups private forum. Open the "Members" page and copy the link to this page. You need this link for your JavaScript script.
-
2
Right-click the HTML you want to edit. Click "Open With" and select your preferred HTML editor. Add a div container to display the membership information on your Web page. Add the following code to the location in the HTML file where you want to information to show:
<div id="members"> </div>
-
-
3
Add the JavaScript jQuery libraries. These libraries allow you to use the JavaScript asynchronous requests to your pages, so the page does not need to be reloaded when you retrieve the email addresses. Add the following code to your "script" section in the HTML code:
<script src="http://code.jquery.com/jquery-latest.js"></script>
-
4
Add the following code to your JavaScript section:
$("#members").load(copied_link");
Replace "copied_link" with the link address you copied from the Google Groups page in your browser. The code above retrieves the member emails and displays them in the container you created previously.
-
1