Skip to content

Amazon selectors have changed (my fix included) #1583

@Frank-Steiner

Description

@Frank-Steiner

Hi,
at least for me the Amazon selectors have changed so that docudigger doesn't find any invoices. Just in case someone comes accross the same problem, this worked for me:

Changes in selector.helper.js:

  //orderCards: `div.order.js-order-card`,
    orderCards: `div.order-card.js-order-card`,
  //orderNr: `.yohtmlc-order-id span:nth-last-child(1) bdi`,
    orderNr: `.yohtmlc-order-id span:nth-last-child(1)`,
  //yearFilter: `select[name='orderFilter']#orderFilter`,
    yearFilter: `select[name='timeFilter']#time-filter`,

Changes in amazon/index.js:

    async goToYearAndPage(year, orderPage, amazon) {
    ...
        // const nextPageUrl = new URL(`?ie=UTF8&orderFilter=year-${year}&search=&startIndex=${10 * (orderPage)}`, amazon.orderPage);
        const nextPageUrl = new URL(`?ie=UTF8&timeFilter=year-${year}&search=&startIndex=${10 * (orderPage)}&ref_=ppx_yo2ov_dt_b_filter_all_y${year}`, amazon.orderPage);

cu,
Frank

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: amazonIssues related to amazon plugin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions