Skip to content

Get the list of exam and class interferences from golestan's 110 report and save it into an HTML file, making it easier to search for courses you want to take next semester!

Notifications You must be signed in to change notification settings

alirezazahiri/chart-scrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • run the code below in the console (which is opened in the golestan's window) :
fetch(
  "https://raw.githubusercontent.com/alirezazahiri/chart-scrapper/master/dist/main.min.js",
  {
    method: "GET",
    redirect: "follow",
  }
)
  .then((response) => response.text())
  .then((result) => {
    var textArea = document.createElement("textarea");
    textArea.value = result;
    textArea.style.top = "0";
    textArea.style.left = "0";
    textArea.style.position = "fixed";
    document.body.appendChild(textArea);
    textArea.focus();
    textArea.select();
    try {
      const successful = document.execCommand("copy");
      console.log(successful ? "successful" : "unsuccessful");
    } catch (err) {
      console.error("unable to copy!", err);
    }
    document.body.removeChild(textArea);
  })
  .catch((error) => console.log("error", error));
  • after executing the code, you can use ctrl+v to paste the code you need to run, to download the result HTML file

  • then hit the ENTER and open the downloaded HTML file!


  • or if you want to just extract all the table data in json format, just use the code below :
fetch(
  "https://raw.githubusercontent.com/alirezazahiri/chart-scrapper/master/dist/data.ext.min.js",
  {
    method: "GET",
    redirect: "follow",
  }
)
  .then((response) => response.text())
  .then((result) => {
    var textArea = document.createElement("textarea");
    textArea.value = result;
    textArea.style.top = "0";
    textArea.style.left = "0";
    textArea.style.position = "fixed";
    document.body.appendChild(textArea);
    textArea.focus();
    textArea.select();
    try {
      const successful = document.execCommand("copy");
      console.log(successful ? "successful" : "unsuccessful");
    } catch (err) {
      console.error("unable to copy!", err);
    }
    document.body.removeChild(textArea);
  })
  .catch((error) => console.log("error", error));
  • and you can have the data stored in JSON_DATA variable!

About

Get the list of exam and class interferences from golestan's 110 report and save it into an HTML file, making it easier to search for courses you want to take next semester!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published