konnectors / boursorama Goto Github PK
View Code? Open in Web Editor NEWImports your Boursorama bank accounts and transactions into your cozy cloud
License: GNU Affero General Public License v3.0
Imports your Boursorama bank accounts and transactions into your cozy cloud
License: GNU Affero General Public License v3.0
Hey
I did update who work, because what Store let install not work correctly
Idk how to pull here then do :
cozy-stack konnectors install --domain cloud.mewto.me boursorama 'git+https://[email protected]/konnectors/boursorama.git#build'
For more info (in french) :
Bonjour
Il manque dans helpers.js
(line ~23) const AbbrToAccountType = {
cefp: AccountType.MARKET
pour les comptes epargne piloté,
epargne: AccountType.SAVINGS
pour les livret simple (epargne/csl, juste sl est recuperer par le match)
et pour les prets :
consommation: AccountType.CREDIT
puis au dessus dans const AccountType = {
rajouter
PEA: 'PEA',
CREDIT: 'ConsumerCredit'
Et il faudrait ajouter dans lib.js, ligne ~275
// delete elems with undefined type.filter(obj => obj.type !== undefined)
sinon tous les liens sont retournée meme si ce n’est pas un compte valide, lorsqu’on agrege d’autres banque par exemple, et on obtient une erreur interne
et rajouter avant return
if (number === '') {const numberAgain = scrape($('div.account-number'), {reference: {sel: 'strong:first-child' }})account.number = numberAgain.reference account.vendorId = numberAgain.reference }}
pour permettre de recuperer le numero de compte quand il se place sous un div et non un h3
It seems the account list has some elements that should be filtered out as they are not accounts. I had to filter this but don't know how to do it properly (if filtering after the scrape operation, it will still throw a lot of error because type is not defined on those entries):
filter( x => x.label != 'TOUS MES COMPTES' && x.label != '' && x.label != '. . .')
Bonjour,
Je ne sais pas comment aider, et je vais faire de mon mieux.
J'ai remarqué récemment que le connecteur ne fonctionnait plus sur mon compte. J'ai essayé de débugguer et je me suis rendu compte que le parseBankAccounts fonctionne mal. Par exemple pour ma part voici le résultat de la liste des comptes (j'ai modifié les balances et les id mais on voit trois structures vides) :
[
{
idAccount: 'budget',
label: 'TOUS MES COMPTES',
balance: 111111,
url: 'https://clients.boursorama.com/budget/'
},
{
label: '',
balance: NaN,
url: 'https://clients.boursorama.comundefined'
},
{
idAccount: '7dcf42b3b709d',
label: 'COMPTE COMMUN',
balance: 11111111,
type: 'Checkings',
url: 'https://clients.boursorama.com/compte/cav/7dcf42b3b709d/'
},
{
idAccount: '38375408231c',
label: 'COMPTE CARTE BLEUE',
balance: 111111,
type: 'Checkings',
url: 'https://clients.boursorama.com/compte/cav/38375408231c/'
},
{
idAccount: '21b3f97e493e1',
label: 'COMPTE VIREMENT',
balance: 111111,
type: 'Checkings',
url: 'https://clients.boursorama.com/compte/cav/21b3f97e493e1/'
},
{
label: '',
balance: NaN,
url: 'https://clients.boursorama.comundefined'
},
{
idAccount: 'f6182514a5fb348',
label: 'HELLO BANK',
balance: 11111,
url: 'https://clients.boursorama.com/budget/compte/f6182514a5fb348/'
},
{
idAccount: '1714a012ab91f5878ef2948',
label: 'ASSURANCE AUTOMOBILE',
balance: NaN,
url: 'https://clients.boursorama.com/assurance/automobile/1714a012ab91f5878ef2948'
},
{
label: '. . .',
balance: NaN,
url: 'https://clients.boursorama.comundefined'
},
{
idAccount: '34fdb992a2a1b73ff63',
label: 'ASSURANCE HABITATION',
balance: NaN,
url: 'https://clients.boursorama.com/assurance/habitation/34fdb992a2a1b73ff63'
}
]
J'ai essayé de jouer avec le filtre du scrap du parseBankAccounts mais je ne m'y connais pas assez en selector : table.table--accounts tr.table__line--account
Comment je peux aider ?
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These problems occurred while renovating this repository. View logs.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
package.json
cozy-doctypes 1.89.1
cozy-konnector-libs 5.8.0
moment 2.30.1
cozy-jobs-cli 2.3.0
cozy-konnector-build 1.5.1
jsdoc 3.6.11
.travis.yml
node 16.20.2
Every time I synchronize, I get a bunch of errors in the logs, and I end up with an extra copy of my accounts (adding to more and more money, which I wish was real but isn't :( ).
The error logs (edited to remove identifying details):
W: Could not parse for
W: Cannot read property '3' of null
W: Failed to create global model:
W: {"errors":[{"status":"404","title":"Not Found","detail":"wanted remote asset is not part of our asset list","source":{}}]}
W: Failed to create local model:
W: Impossible to instanciate a classifier since there is no manually categorized transactions to learn from
E: Stderr: FetchError: {"error":"conflict","ok":false,"reason":"Document update conflict.","status":"409"}
at CozyStackClient.<anonymous> (/tmp/service-banks692701657/index.js:22:349701)
at tryCatch (/tmp/service-banks692701657/index.js:22:329033)
at Generator._invoke (/tmp/service-banks692701657/index.js:22:328807)
at Generator.e.<computed> [as next] (/tmp/service-banks692701657/index.js:22:329565)
at asyncGeneratorStep (/tmp/service-banks692701657/index.js:38:33795)
at _next (/tmp/service-banks692701657/index.js:38:34009)
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
response: k [Response] {
size: 0,
timeout: 0,
[Symbol(Body internals)]: { body: [PassThrough], disturbed: true, error: null },
[Symbol(Response internals)]: {
url: 'https://mydomain/data/io.cozy.bank.groups/dbc65af4f2723e9791fc66a9b907baac',
status: 409,
statusText: 'Conflict',
headers: [b [Headers]],
counter: 0
}
},
url: 'https://mydomain/data/io.cozy.bank.groups/dbc65af4f2723e9791fc66a9b907baac',
status: 409,
reason: {
error: 'conflict',
ok: false,
reason: 'Document update conflict.',
status: '409'
}
}
W: Error while performing job: exit status 1 (retry in 58.474649ms)
E: Stderr: FetchError: {"error":"conflict","ok":false,"reason":"Document update conflict.","status":"409"}
at CozyStackClient.<anonymous> (/tmp/service-banks909172580/index.js:22:347902)
at tryCatch (/tmp/service-banks909172580/index.js:22:327234)
at Generator._invoke (/tmp/service-banks909172580/index.js:22:327008)
at Generator.e.<computed> [as next] (/tmp/service-banks909172580/index.js:22:327766)
at asyncGeneratorStep (/tmp/service-banks909172580/index.js:38:33795)
at _next (/tmp/service-banks909172580/index.js:38:34009)
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
response: k [Response] {
size: 0,
timeout: 0,
[Symbol(Body internals)]: { body: [PassThrough], disturbed: true, error: null },
[Symbol(Response internals)]: {
url: 'https://mydomain/data/io.cozy.bank.accounts/dbc65af4f2723e9791fc66a9b969e2fd',
status: 409,
statusText: 'Conflict',
headers: [b [Headers]],
counter: 0
}
},
url: 'https://mydomain/data/io.cozy.bank.accounts/dbc65af4f2723e9791fc66a9b969e2fd',
status: 409,
reason: {
error: 'conflict',
ok: false,
reason: 'Document update conflict.',
status: '409'
}
}
I somehow have 2 versions of boursorama installed on this cozy (1.8.1-56a12982ace7ab6d59dbc79ae04006ff884e0417 and 1.8.1-99f2981f883ace5a1eaece3c421bcb5e129a447d34286459288153292da8ab4f) so I'm not sure which one is running, but I:
Anything else I can help with?
Inside code lib.js change the start line on function
It's need to add _token and get his value from login page
`function authenticate(urlLogin, urlKeyboard, login, passwd) {
let formData = {
'form[clientNumber]': login,
'form[password]': '',
'form[matrixRandomChallenge]': '',
'form[_token]': ''
}
return request({
uri: urlLogin
})
.then($ => {
const token = $('input#form__token').val()
formData['form[_token]'] = token
return request({
uri: urlKeyboard
})
})`
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.
Hi,
I'm trying to set up a cozy stack with the boursorama konnector, self-hosted with docker (https://github.com/vsellier/easy-cozy). Apps seem to run fine, but when I installed this konnector (using cozy-stack apps install
with this github url), I couldn't connect to my boursorama account.
In the logs, I got the following error:
Stderr: internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module cozy-konnector-libs
Require stack:
- /tmp/konnector-boursorama567143635/src/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/tmp/konnector-boursorama567143635/src/index.js:1:27)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
code: MODULE_NOT_FOUND,
requireStack: [ /tmp/konnector-boursorama567143635/src/index.js ]
}
However, the Ameli konnector (https://github.com/konnectors/cozy-konnector-ameli) uses the same cozy-konnector-libs, with the same version (4.42.0) and works fine on the same stack.
I tried asking the Cozy team for help, they told me they didn't support docker installations. I tried asking the maintainer of the docker stack for help (vsellier/easy-cozy#9) but it seems it's not an issue of the stack since another konnector using the same lib works fine.
If there's anything I can do to help, logs to pull, anything, please tell me :)
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.