Giter VIP home page Giter VIP logo

moodle-course-downloader's People

Contributors

felixauringer avatar

Watchers

 avatar

moodle-course-downloader's Issues

Improve configuration management

It would be nice to be able to configure the crawler to crawl multiple courses / multiple moodle instances. Instead of command line arguments this would be easier using actual configuration files.

Implement authentication of crawler against moodle

Most moodle courses are only visible when logged in. Therefore, the crawler needs a valid session to do its work. I would think setting a single cookie should work. The cookie should not be visible in the cli history.

Add crawler struct

The crawler should do the following things:

  • save which pages were already fetched
  • keep a queue of resources to be fetched
  • include the configuration and http client (less global state)

Save fetched files on disk

  • deduce unique filename from resource url
  • save data in the right format based on the content type
  • check that webpage can be opened locally afterwards
  • make the path where the files are saved configurable

Improve error handling

Right now, I give most errors to log.Fatal. That is not very error resilient and causes the application to crash on every error. Some errors can probably just be logged or handled somehow else and do not need the application to crash.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.