pote-emploi

1.0.7 • Public • Published

~this project's doc is in french since it is an attempt at making an API for the french website for unemployed people~

Pote emploi

Un robot qui se log sur https://candidat.pole-emploi.fr/ avec mes identifiants et qui me donne toutes les info utiles.

Ce projet est financé par Pôle Emploi, d'une certaine manière (détournée)...

Install

$ npm install

If you have problems with phantomjs path, try adding ./node_modules/.bin/ to your path like this

$ export PATH=$PATH:"$PWD"/node_modules/.bin/

Use as a node module

As you can see in the test app, here is how to use Pote Emploi in your node.js app:

// env vars
var USER_ID = '1234567x';
var USER_PASSWORD = '123456';
var USER_POSTCODE = '12345';

var poteEmploi = require('pote-emploi');
var api = poteEmploi.start(USER_ID,USER_PASSWORD,USER_POSTCODE);
/* 
    Here you can use these methods
    * api.getStatus
    * api.updateMe
    * api.getPaiements
    * api.getMail
*/
poteEmploi.stop();

Use standalone

Run

$ USER_ID=1234567x USER_PASSWORD=123456 USER_POSTCODE=12345 npm start

Result of getStatus

{
  subscribed: '01/01/2001',
  subscription: 'Allocation d\'aide au Retour à l\'Emploi',
  daily: 10.67,
  nextUpdate: { start: '01/01/2001', end: '01/01/2001' },
  updateStatus: 'notready' 
}

Valeurs possibles pour updateStatus :

  • ready => vous devez vous actualiser
  • notready => la date approche
  • done => votre actualisation a été validée
  • pending => votre actualisation est en cours de validation

Parcours du robot

Saisie identifiant

https://candidat.pole-emploi.fr/candidat/espacepersonnel/authentification

#champTexteIdentifiant => Identifiant (6 - 12 caractères, sans caractère spécial, sans espace.) Vous avez oublié votre mot de passe et/ou votre identifiant ?

#boutonContinuer => Saisie mot de passe et code postal

Saisie mot de passe et code postal

https://candidat.pole-emploi.fr/candidat/espacepersonnel/authentification

Dégager le "clavier virtuel" .form-clavier a => ouvre une autre page => #jeSouhaite et #boutonValider

#champMotDePasse => Mot de passe Vous avez oublié votre mot de passe et/ou votre identifiant ?

#champTexteCodePostal => Code postal

#boutonValider => Portail candidat

Portail candidat

https://candidat.pole-emploi.fr/candidat/espacepersonnel/regroupements

.u-feature .bd p => Vous êtes inscrit comme demandeur d'emploi depuis le 04/03/2015 en Allocation d'aide au Retour à l'Emploi. Votre indemnisation est de 13,85 € par jour.

.info-link em => Info : Dernier paiement<br> 1&nbsp;36,20 € net le 06/05/2015

.nav .primary-button => Je m'actualise

.u-my-allowances => Mes allocations

A voir aussi :

  • Mes échanges avec pole emploi

Je m'actualise

.bd => si HTTP error + redirect to Vous avez déjà déclaré votre situation pour cette période. => ok => reprendre depuis le début

TODO: handle actualisation

Mes allocations

https://candidat.pole-emploi.fr/candidat/espacepersonnel/regroupements/MesAllocations

.u-allowances-pay => Mes paiements et remboursements

A voir aussi :

  • Calendrier de l'actualisation et des paiements

Mes paiements et remboursements

.definition-table tbody tr => contains .date a (09/06/2015) and txt-c (529,35 €)

Readme

Keywords

none

Package Sidebar

Install

npm i pote-emploi

Weekly Downloads

1

Version

1.0.7

License

GPL v3

Last publish

Collaborators

  • lexoyo