alcc01 / classevivaapi Goto Github PK
View Code? Open in Web Editor NEWClasseviva Electronic register (unofficial) parser & API
Home Page: https://dev.albertocoscia.me/classeviva/
License: GNU General Public License v3.0
Classeviva Electronic register (unofficial) parser & API
Home Page: https://dev.albertocoscia.me/classeviva/
License: GNU General Public License v3.0
il link non porta a nulla
Il metodo agenda all'interno di Session.js, al contrario degli altri metodi di quella classe, prende l'html intero e non lo trasforma in json. Quindi risulta sempre errore
It seems the docs' link are broken :-(
Penso spaggiari abbia aggiornato i propri sistemi e che sia cambiato anche l'url del login. Perché mi dava errore 503, servizio non disponibile.
Ho provato ad aggiornare l'uri nel file index.js a quello nuovo: "https://web.spaggiari.eu/home/app/default/login.php?custcode="
però adesso da errore: "invalid session id".
What this mean?
start=" + parseInt(((new Date).getTime() / 1000 - 86400)) + "&end=" + parseInt(((new Date).getTime() / 1000 + 86400 * 7));
it comes from app.get('/:sessionId/agenda', function (req, res)
La faccio qui visto che non sono abilitate le discussioni.
Mi pare di vedere che le informazioni vengano prese via webscraping, no? Andate a estrarre i dati dalle tabelle che vengono lette normalmente dagli utenti.
Classeviva, anche se in maniera parziale, dovrebbe avere già una sua REST API
, documentata qui
.
Forse è già stata utilizzata per qualcosa, ma se non è così potrebbe tornare utile per rendere alcune operazioni più veloci.
Penso spaggiari abbia aggiornato i propri sistemi e che sia cambiato anche l'url del login. Perché mi dava errore 503, servizio non disponibile.
Ho provato ad aggiornare l'uri nel file index.js a quello nuovo: "https://web.spaggiari.eu/home/app/default/login.php?custcode="
però adesso da errore: "invalid session id".
Hello, while I try to start the API, using sudo npm start
, it's returns me this errors:
marcobuster@vps280105:~/ClassevivaAPI$ sudo npm start
> [email protected] start /home/marcobuster/ClassevivaAPI
> node ./app.js
module.js:328
throw err;
^
Error: Cannot find module './config.json'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/marcobuster/ClassevivaAPI/app.js:5:11)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
npm ERR! Linux 4.4.0-24-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node ./app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node ./app.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ClassevivaAPI package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./app.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ClassevivaAPI
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ClassevivaAPI
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/marcobuster/ClassevivaAPI/npm-debug.log
marcobuster@vps280105:~/ClassevivaAPI$
Ho provato ad usare le API semplicemente con il metodo login, ho inserito credenziali corrette ed installato la libreria, ma mi da un errore:
Unhandled rejection StatusCodeError: 404 - "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p>The requested URL /auth/app/default/AuthApi2.php was not found on this server.</p>\n</body></html>\n"
at new StatusCodeError (C:\Users\elena\Desktop\Discord Bots\Skool Bot\node_modules\request-promise-core\lib\errors.js:32:15)
at Request.plumbing.callback (C:\Users\elena\Desktop\Discord Bots\Skool Bot\node_modules\request-promise-core\lib\plumbing.js:104:33)
at Request.RP$callback [as _callback] (C:\Users\elena\Desktop\Discord Bots\Skool Bot\node_modules\request-promise-core\lib\plumbing.js:46:31)
at Request.self.callback (C:\Users\elena\Desktop\Discord Bots\Skool Bot\node_modules\request\request.js:185:22)
at Request.emit (events.js:311:20)
at Request.<anonymous> (C:\Users\elena\Desktop\Discord Bots\Skool Bot\node_modules\request\request.js:1154:10) at Request.emit (events.js:311:20)
at IncomingMessage.<anonymous> (C:\Users\elena\Desktop\Discord Bots\Skool Bot\node_modules\request\request.js:1076:12)
at Object.onceWrapper (events.js:417:28)
at IncomingMessage.emit (events.js:323:22)
at endReadableNT (_stream_readable.js:1204:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
Sono queste API ancora utilizzabili?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.