Skip to content

[9.0] [MIG] html_image_url_extractor module - #624

Merged
moylop260 merged 2 commits into
OCA:9.0from
Tecnativa:9.0-mig-html_image_url_extractor
Nov 29, 2016
Merged

[9.0] [MIG] html_image_url_extractor module#624
moylop260 merged 2 commits into
OCA:9.0from
Tecnativa:9.0-mig-html_image_url_extractor

Conversation

@cubells

@cubells cubells commented Nov 28, 2016

Copy link
Copy Markdown
Member
  • Updated README.rst

@Tecnativa

yajo and others added 2 commits November 28, 2016 10:51
* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.
@pedrobaeza pedrobaeza mentioned this pull request Nov 28, 2016
59 tasks
:param bool fail:
If ``True``, exceptions will be raised.
"""
# Parse HTML

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parsing HTML with Regex is never really the way to go, please see this famous answer on SO for an amazing elaboration.

Why not just xml.dom.minidom.parseString(html).getElementsByTagName('img') + other logic?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only a migration of something done on v8. As this extract utility is very specific, I wouldn't touch this too much...

@lasley lasley Nov 29, 2016

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But when we bring something into OCA aren't we guaranteeing that it works by OCA standards? This definitely does not work in all instances - I've been burned by this before.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is not working? It's in v8 and used by many modules without problems

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright wait maybe I'm misinterpreting something here. The regex is being applied against an element node, so we're good. My bad I misread there.

@lasley lasley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cubells but I'm 👎 on this, please see my inline comment regarding the use of Regexes for this purpose.

@lasley lasley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In light of inline convo, this was a stupid me situation. LGTM! 👍

@lasley lasley added this to the 9.0 milestone Nov 29, 2016
@moylop260
moylop260 merged commit cec41e8 into OCA:9.0 Nov 29, 2016
yajo pushed a commit to Tecnativa/server-tools that referenced this pull request Jun 22, 2017
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
yajo pushed a commit to Tecnativa/server-tools that referenced this pull request Jul 17, 2017
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
tarteo pushed a commit to tarteo/server-tools that referenced this pull request Feb 14, 2018
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
MrFangD pushed a commit to MrFangD/server-tools that referenced this pull request Nov 3, 2018
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
@yajo
yajo deleted the 9.0-mig-html_image_url_extractor branch November 5, 2018 09:01
cristinamartinrod pushed a commit to Tecnativa/server-tools that referenced this pull request Feb 12, 2019
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
tarteo pushed a commit to tarteo/server-tools that referenced this pull request Jan 9, 2020
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
victoralmau pushed a commit to Tecnativa/server-tools that referenced this pull request Feb 24, 2021
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
victoralmau pushed a commit to Tecnativa/server-tools that referenced this pull request Mar 15, 2021
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
ThomasBinsfeld pushed a commit to acsone/server-tools that referenced this pull request Mar 23, 2021
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
hkapatel-initos pushed a commit to initOS/server-tools that referenced this pull request Jul 2, 2021
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
mtelahun pushed a commit to mtelahun/server-tools that referenced this pull request Sep 5, 2022
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
victoralmau pushed a commit to Tecnativa/server-tools that referenced this pull request Feb 27, 2023
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst

OCA Transbot updated translations from Transifex
adasatorres pushed a commit to adasatorres/server-tools that referenced this pull request Aug 3, 2023
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
SiesslPhillip pushed a commit to grueneerde/OCA-server-tools that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-tools (13.0)
kaynnan pushed a commit to Escodoo/server-tools that referenced this pull request Jul 11, 2025
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst

OCA Transbot updated translations from Transifex
kaynnan pushed a commit to Escodoo/server-tools that referenced this pull request Aug 21, 2025
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst

OCA Transbot updated translations from Transifex
WesleyOliveira98 pushed a commit to Escodoo/server-tools that referenced this pull request Feb 25, 2026
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst

OCA Transbot updated translations from Transifex
WesleyOliveira98 pushed a commit to Escodoo/server-tools that referenced this pull request Feb 25, 2026
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst

OCA Transbot updated translations from Transifex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants