Skip to main content

medialog.lxml

WARNING: This product contains a view that could be a security RISK!

https://www.youtube.com/watch?v=jE1gLOBBKb4

About the views and behavior

  • This is slightly experimental. Please give feedback and suggestions.

  • The embed views might be insecure, although if you are restrictive with the settings in the control panel you should be able to filter out evil code.

How to embed another webpage to your site

  • go to the control panel.

  • in the medialog.control panel, set default settings for your embed views

  • add a dexterity content type

  • add LXML embed behaviour

  • Add a content type to your site and enter embed details

  • go to http://plonesite/content/scrape_view

  • You probably want to add the view to the contenttype TTW

How add content from another webpage to your site

  • be sure to set up whitelist and url pairs in the control panel

  • go to a folder

  • add /@@createpage?url=http://url/of/somepage

  • go to your folder: a new page should have been added

  • PS: Settings in the medialog control panel and html safe settings are taken into account

How batch add content from other webpages to your site

  • make a CSV file with ‘url’ and ‘selector’ rows

  • go to a folder

  • add /@@createpages

  • select the CSV file

  • A page for each corresponding url & selector will be added

  • In other words, if you add a line with http://plone.org and #content-core, a Page will be added to your site and the body text will be that of #content-core from plone.org’s front page.

The view

http://yoursite.com/scrape?url=http://plone.org/products/plone/features/

Author

Espen Moe-Nilssen, Grieg Medialog AS

Contributors

Release files for medialog.lxml 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for medialog.lxml 0.4
File Size Uploaded
medialog.lxml-0.4.tar.gz 12.4 kB Details

Release files / medialog.lxml-0.4.tar.gz

Download URL medialog.lxml-0.4.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
03db578c20fd88f58988279b330cbc86d4787cdd47da5d8af4d603deed173d0b
BLAKE2b-256 checksum
How to use checksums
d3ba710a5748ffe42c830dad269fcfe648b89b8e9ae0a8c109aa731d7c42a42c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4 This release

1 release file

0.3.1

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page