Skip to content
  1. Nov 30, 2018
  2. Nov 10, 2018
    • Maxime Gasselin's avatar
      [bnporc-entreprise] Fix Market page when no account is present · 3b542a47
      Maxime Gasselin authored and Romain Bignon's avatar Romain Bignon committed
      The account table is present when no account is present, we need to add
      condition to avoid research account in this case.
      
      Closes: 27858@sibi
      3b542a47
    • Quentin Defenouillere's avatar
      [bnporc-entreprises] Split market account from checking account · 24659b1a
      Quentin Defenouillere authored and Romain Bignon's avatar Romain Bignon committed
      The market accounts were not scraped yet, the BNP website seems to have
      changed recently.
      This patch enables scraping of the market accounts.
      The iter_investments method already worked as such, however the
      pagination is not yet handled.
      When there is only one account on the "invests" page, the checking and
      the market account are fused into one account, the market balance is not
      scraped, nor are the investments.
      This patch enables both accounts to be visible with their respective
      balances and the investments related to the market account.
      
      Closes: 6827@zendesk
      24659b1a
  3. Aug 18, 2018
    • Nicolas Gattolin's avatar
      [bnporc] py3 port · 5a8411fb
      Nicolas Gattolin authored and Romain Bignon's avatar Romain Bignon committed
      - import unicode_literals in each Python module
      - import weboob's basestring compat
      - xrange -> range
      - tested on 90 connections, 1 for each API
      5a8411fb
  4. Jul 29, 2018
    • Célande Adrien's avatar
      [bnporc] get rid of bad history for enterprise · f1bcae65
      Célande Adrien authored and Romain Bignon's avatar Romain Bignon committed
      A recurring problem with bnporc is that sometimes you may not have the good transactions list.
      It may be truncated a lot. For example, from 50 transactions, you had only 5.
      Because of that, in the backend some transactions become deleted because of one update with the bad transactions.
      
      I tried to fix it by copying the website, since you never had bad transactions on it.
      First, I changed the 'typeReleve' from 'Comptable' to 'Previsionnel' because it is the only type the website is using.
      And I added some parameters to the history request. The same ones are used to go on the transaction page and to get the json data.
      
      I tested a lot on connections, knowing the right and the wrong history state.
      Since I applied the patch, I had not once the wrong state.
      
      Closes: 5663@zendesk
      Closes: 6219@zendesk
      Closes: 6225@zendesk
      Closes: 6229@zendesk
      Closes: 6115@zendesk
      f1bcae65
    • Célande Adrien's avatar
      [bnporc] market account if only one account · 536ac6ba
      Célande Adrien authored and Romain Bignon's avatar Romain Bignon committed
      In some case, you may have only one market type account. If so, the website does not show a page with the list of one account but directly the details of this account.
      
      Most of the time, getting the number in the account label is enough to recognize it in the iter_accounts.
      But sometime you have custom account label, so it is not enough. That is why the entire account name is retrieved.
      
      Closes: 13125@sibi
      Closes: 12518@sibi
      Closes: 13576@sibi
      Closes: 12610@sibi
      Closes: 12871@sibi
      Closes: 11832@sibi
      Closes: 11912@sibi
      Closes: 11913@sibi
      Closes: 11867@sibi
      Closes: 11750@sibi
      Closes: 11749@sibi
      Closes: 11580@sibi
      Closes: 11715@sibi
      Closes: 11714@sibi
      536ac6ba
    • Maxime Gasselin's avatar
      [bnporc-entreprise] fix regex error · d4d343fe
      Maxime Gasselin authored and Romain Bignon's avatar Romain Bignon committed
      My precedent MR had an error when an account doesn't have number in the
      label. The fix allows the account to have number.
      closes: 750661@redmine
      d4d343fe
    • cadrien's avatar
      [bnporc] fusion between checking and card accounts · 4864c7f7
      cadrien authored and Romain Bignon's avatar Romain Bignon committed
      Closes: 4907@zendesk
      4864c7f7
    • Maxime Gasselin's avatar
      [bnporc] Add invest for BNP entreprise · d0833879
      Maxime Gasselin authored and Romain Bignon's avatar Romain Bignon committed
      Add a connection to the "Placements" page, and scrapping on the HTML
      pages. For this it was necessary to take a token and a specific account ID to
      reach the invest page.
      
      closes: 5078@zendesk
      d0833879
    • cadrien's avatar
      [bnporc] resolved json parsing problems · 856cbb12
      cadrien authored and Romain Bignon's avatar Romain Bignon committed
      Problem 1: The rdate found in the raw can be truncated. So it is ignored.
      
      Problem 2: The date field can be empty. So the coming is ignored.
      
      Closes: 870@sibi
      Closes: 4470@sibi
      Closes: 6436@sibi
      Closes: 7235@sibi
      856cbb12
  5. Apr 15, 2018
  6. Mar 31, 2018
  7. Mar 03, 2018
  8. Feb 04, 2018
  9. Jan 14, 2018
  10. Dec 30, 2017
  11. Dec 16, 2017
  12. Dec 03, 2017
    • ntome's avatar
      [bnporc] entreprise site: type tweaks for card transactions · bdcc2440
      ntome authored and Romain Bignon's avatar Romain Bignon committed
      Don't ignore anymore "FACTURE CARTE DU" transactions.
      Some of them are card_summary if coming from a deferred debit card. Some
      others are immediate debits.
      Account._has_cards is not enough, the site may show "Encours carte" link
      while there are no deferred debit cards.
      bdcc2440
  13. Nov 18, 2017
  14. Oct 08, 2017
    • David Kremer's avatar
      [bnporc] merge list of cards · f39e9b17
      David Kremer authored and Romain Bignon's avatar Romain Bignon committed
      At the end of the month, the list of cards is duplicated,
      because the coming amount may exist for the current month
      and the next. We need to merge the list of cards in this
      situation, we try to only keep cards with a coming amount
      in case of a duplicate.
      f39e9b17
    • David Kremer's avatar
      [bnporc/enterprise] fix colliding card number · 74230703
      David Kremer authored and Romain Bignon's avatar Romain Bignon committed
      74230703
    • David Kremer's avatar
      [bnporc] fix timestamp regex · 6e47f2f7
      David Kremer authored and Romain Bignon's avatar Romain Bignon committed
      The old pattern was
      
      - find a (\d{6}) pattern in the libelle of the transaction.
      - fallback to the 'creationDate' parameter in the JSON dictionary.
      
      The step 1 was almost never performed because dates in the libelle are 8
      digits wide.
      
      The new algorithm is :
      
      - find a (\d{8}) pattern in the libelle of the transaction (it occurs
        much more frequently).
      - if no pattern is found, fallback to the 'creationDate' parameter.
      
      Because of this, there is probably a large number of transaction which
      are going to have their rdate field updated.
      6e47f2f7
    • David Kremer's avatar
      [bnporc] update fromtimestamp function · 4a95a870
      David Kremer authored and Romain Bignon's avatar Romain Bignon committed
      4a95a870
    • David Kremer's avatar
      [bnporc] pep8 · 7ad4b918
      David Kremer authored and Romain Bignon's avatar Romain Bignon committed
      7ad4b918
  15. Jul 22, 2017
  16. Jul 08, 2017
  17. Jun 24, 2017
  18. Jun 17, 2017
  19. May 20, 2017
  20. Apr 29, 2017
  21. Apr 27, 2017
  22. Apr 01, 2017