robert · zaage.IT Git

Madsack+ Viewer WebApp

Description

This simple web application is designed to extract the SEO string from news pages generated by the Arc XP Content Suite CMS. The magic here is in a single regex statement:

json.loads(re.findall('Fusion.globalContent=(.*?);Fusion.globalContentConfig', Article.text)[0])

The resulting JSON blob can now be further processed and displayed in a web application or smartphone app, for example.

Architecture

How do I build this?

  1. Build the backend container image using build.sh
  2. Run container - flask is listening on 8088
  3. Deploy the frontend on a web server of your choice (i used nginx)
  4. Configure url variable in getArticle function to your backend endpoint

Read the original on git.zaage.it ↗