GithubHelp home page GithubHelp logo

catalan-adobe / acom-franklin-import-sections-mapping Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 1.15 MB

CLI for executing adobe.com Franklin import using sections mapping flow

JavaScript 100.00%

acom-franklin-import-sections-mapping's People

Contributors

catalan-adobe avatar renovate[bot] avatar semantic-release-bot avatar

Watchers

 avatar

acom-franklin-import-sections-mapping's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/branch.yml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-node v4
npm
package.json
  • @adobe/helix-importer ^3.0.0
  • @flatten-js/core ^1.3.5
  • axios ^1.3.4
  • exceljs ^4.3.0
  • express ^4.18.2
  • franklin-bulk-shared 1.17.1
  • glob ^10.0.0
  • serve-index ^1.9.1
  • sharp ^0.33.0
  • terminal-kit ^3.0.0
  • yargs ^17.7.1
  • @semantic-release/changelog ^6.0.3
  • @semantic-release/git ^10.0.1
  • @semantic-release/github ^9.0.0
  • @semantic-release/npm ^11.0.0
  • eslint 8.57.0
  • eslint-config-airbnb-base 15.0.0
  • eslint-plugin-import 2.29.1
  • semantic-release ^22.0.0
  • node >=18.15.0

  • Check this box to trigger a request for Renovate to run again on this repository

`acom-sections-mapping prepare` is not extracting some sections on some pages

Issue

acom-sections-mapping prepare is not extracting some sections on some pages.

How to reproduce

Example page: https://business.adobe.com/products/adobe-experience-cloud-products.html

image

Run

echo 'https://business.adobe.com/products/adobe-experience-cloud-products.html' | node index.js prepare -i

Then
=> In sections-mapping/data, find the screenshots for that page, notice the bottom red marquee is missing

Investigation

business.adobe.com has akamai layer that checks for pages being loaded in "automation", in our case a headless browser. The function we use to launch the headless browser already implements basic mechanism to "hide" its headless state (like sanitizing the user-agent) but it's not enough.
By sniffing the network requests, we can see 403 responses on extra HTML resources fetched from the page (like plain HTML from fragments).

Solution

Until we find ways to not be detected as headless, we can report back in the output when we capture such issue + notify to re-run the command in non headless mode, using --no-headless.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.