New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

codecademy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codecademy

Screen scrapes the codecademy website to get student progress

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

Codecademy Screen Scrapper

This is a simple tool for determining a student's progress on a codecademy tutorial.

Usage

var codecademy = require('codecademy')

/**
 * This should be the user name from the user's profile.
 * It will resolve to http://www.codecademy.com/[user]
 */
var user = "UserName"

/**
 * This should be the unique course name.
 * If you hover a card on a user's profile, your browser will show the url.
 * It will resolve to http://www.codecademy.com/tracks/[course]
 */
var course = "CourseName"

codecademy.getProgress(user,course,function(e,progress) {
  if(e.message === "EEUSER") return console.log("User Does Not Exist!")
  if(e) return console.log(e)
  console.log(user+" has completed "+progress+"% of "+course)
})

Test Integrety

As a screen scraper, this tool is inherently fragile. If Codecademy changes up their website, this tool will stop working. As such, I have included a solid set of tests that cover the use cases for this app. Simply run npm test to make sure the tool still works. These tasks require network, and will fail if not present.

Keywords

FAQs

Package last updated on 16 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc