JavaScript Codes to Export Data from Websites using Browser Console

marcus7777

Regular Member
Joined
Apr 30, 2011
Messages
348
Reaction score
306
Hello friends :)

Lately I've been creating a series of Javascript codes that allow us to perform operations that otherwise are usually tedious or require the installation of third-party tools.

With these codes, simply using your browser's console, you should be able to export data as seen in the video tutorials.

To use these codes, you have to open the console of your browser (usually with the F12 key) and paste the code snippets below (waiting for the actions of one step to finish before proceeding to the next).

Some codes are optional, they are used to export the results to CSV format.

Tested in the latest versions of Brave and Chrome.

Let's get to it!

IMPORTANT: the forum did not allow me to post the codes directly, so I am attaching a TXT PDF file to the post from where you should be able to copy and paste easily


Export Google People Also Ask (PAA) questions & answers


  • STEP 1: Search for any term or question on Google, open the console (F12) and paste the first code.
  • STEP 2: When you see the msg "FINISHED" in the console, paste the second code snippet.

Code:
Check the TXT file attached to this post.
Unfortunately, the forum won't let me paste the JavaScript code here directly (it gives an error when trying to post it).

Vídeo tutorial:


Export any WordPress site Post URLs

  • STEP 1: Visit any WordPress site homepage.
  • STEP 2: Open the console and paste the first code snippet.
  • STEP 3: (optional): If you need more than 100 post URLs, use the second code snippet modifying the totalPages value.
Code:
Check the TXT file attached to this post.
Unfortunately, the forum won't let me paste the JavaScript code here directly (it gives an error when trying to post it).

Vídeo tutorial:

Export any YouTube Playlist Video URLs and Titles

  • STEP 1: Visit any YouTube playlist page (the main page of the playlist).
  • STEP 2: Open the console and paste the first code snippet. Wait until the scroll finishes and paste the second snippet.
  • STEP 3: (optional): Use the third code snippet to export the results to CSV.
Code:
Check the TXT file attached to this post.
Unfortunately, the forum won't let me paste the JavaScript code here directly (it gives an error when trying to post it).

Vídeo tutorial:

Export TikTok Channel Video Titles and URLs

  • STEP 1: Visit any TikTok channel profile.
  • STEP 2: Open the console and paste the first code snippet. Wait until the scroll finishes and paste the second snippet.
  • STEP 3: (optional): Use the third code snippet to export the results to CSV.
Code:
Check the TXT file attached to this post.
Unfortunately, the forum won't let me paste the JavaScript code here directly (it gives an error when trying to post it).

Vídeo tutorial:


Export YouTube Channel Video Titles and URLs

  • STEP 1: Visit any YouTube channel page and go to the videos tab.
  • STEP 2: Open the console and paste the first code snippet. Wait until the scroll finishes and paste the second snippet.
  • STEP 3: (optional): Use the third code snippet to export the results to CSV.
Code:
Check the TXT file attached to this post.
Unfortunately, the forum won't let me paste the JavaScript code here directly (it gives an error when trying to post it).

Vídeo tutorial:


More codes coming!


Looking to export data from another website or automate certain actions?

Please share your ideas and if it is feasible, maybe I can create a new code for it. :)
 

Attachments

the file seems not in there
Sorry, I tried to upload a TXT file and it was not possible either, so I edited it to be a PDF.

You should see it now at the end of the post:

1689104364735.png
 
Back
Top