# Create linkedin organization image post from mailchimp campaign

**URL:** <https://community.make.com/t/create-linkedin-organization-image-post-from-mailchimp-campaign/51014>\
**Category:** Questions\
**Tags:** parse, mailchimp, regular-expressions, linkedin, text-parser, connections, filters\
**Created:** [August 14, 2024, 7:25pm UTC](https://community.make.com/t/create-linkedin-organization-image-post-from-mailchimp-campaign/51014 "2024-08-14T19:25:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![floridaseating](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@floridaseating](https://community.make.com/u/floridaseating)\
**Post date:** [August 14, 2024, 7:25pm UTC](https://community.make.com/t/create-linkedin-organization-image-post-from-mailchimp-campaign/51014/1 "2024-08-14T19:25:46Z")

</div>

hi there. i’m making attempting to make my first scenario:

create a linkedin organization image post by inserting the following from a regular mailchimp campaign:

1. image from the campaign html (containing a string such as ‘linkedin’ in the filename?)
2. the campaign archive url
3. the campaign subject line

i think mostly struggling with scraping the desired image from the campaign html

thanks for any help

---

<div class="post-metadata">

**Author:** ![LinkYourTech](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@LinkYourTech](https://community.make.com/u/LinkYourTech)\
**Post date:** [August 14, 2024, 7:29pm UTC](https://community.make.com/t/create-linkedin-organization-image-post-from-mailchimp-campaign/51014/2 "2024-08-14T19:29:24Z")

</div>

Can you give an example of the HTML code? To pull out something like that you’ll need to look for a pattern. You can also upload the file to a cloud storage and pull it from there if it’s an image you created.

---

<div class="post-metadata">

**Author:** ![floridaseating](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@floridaseating](https://community.make.com/u/floridaseating)\
**Post date:** [August 14, 2024, 7:37pm UTC](https://community.make.com/t/create-linkedin-organization-image-post-from-mailchimp-campaign/51014/3 "2024-08-14T19:37:22Z")

</div>

![Screenshot 2024-08-14 at 3.37.03 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/e/7ef7e5ff4d3bc63cd36c80e9e2dd01f624d202a7.png)  
i can ensure filename contains a given string

---

<div class="post-metadata">

**Author:** ![floridaseating](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@floridaseating](https://community.make.com/u/floridaseating)\
**Post date:** [August 14, 2024, 7:43pm UTC](https://community.make.com/t/create-linkedin-organization-image-post-from-mailchimp-campaign/51014/4 "2024-08-14T19:43:02Z")

</div>

Here’s a regex pattern to parse HTML for an image tag where the filename contains the string “linkedin”:

`<img\s+[^>]*src=["']?([^"'\s>]*linkedin[^"'\s>]*\.(?:jpg|jpeg|png|gif|webp|bmp|svg))["']?[^>]*>`

---

<div class="post-metadata">

**Author:** ![LinkYourTech](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@LinkYourTech](https://community.make.com/u/LinkYourTech)\
**Post date:** [August 14, 2024, 7:48pm UTC](https://community.make.com/t/create-linkedin-organization-image-post-from-mailchimp-campaign/51014/5 "2024-08-14T19:48:23Z")

</div>

Use groups like this (?([\s\S]\*?)) to separate the image html, archive url, and the subject line

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/c/1c4f0c9dd316548b6903e960e106d16db6e6195f.png)

---

<div class="post-metadata">

**Author:** ![floridaseating](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@floridaseating](https://community.make.com/u/floridaseating)\
**Post date:** [August 14, 2024, 7:58pm UTC](https://community.make.com/t/create-linkedin-organization-image-post-from-mailchimp-campaign/51014/6 "2024-08-14T19:58:12Z")

</div>

not sure where to insert parser. this is where i’m currently at

 ![Screenshot 2024-08-14 at 3.57.12 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/f/7/f7039fd149e256670bb38ec18a00e7e22ddb14f9.png)

---

<div class="post-metadata">

**Author:** ![LinkYourTech](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@LinkYourTech](https://community.make.com/u/LinkYourTech)\
**Post date:** [August 14, 2024, 8:49pm UTC](https://community.make.com/t/create-linkedin-organization-image-post-from-mailchimp-campaign/51014/7 "2024-08-14T20:49:01Z")

</div>

You need to first down load the file from the url for the image. Use the “HTTP” module “Get File” Then you can map the “File” section in the Linkedin module.

---

<div class="post-metadata">

**Author:** ![floridaseating](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@floridaseating](https://community.make.com/u/floridaseating)\
**Post date:** [August 14, 2024, 9:03pm UTC](https://community.make.com/t/create-linkedin-organization-image-post-from-mailchimp-campaign/51014/8 "2024-08-14T21:03:18Z")

</div>

![Screenshot 2024-08-14 at 5.02.29 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/f/3fe6f3c2111236c26e85d7bf0d7c924b80796a3c.jpeg)  
yes, have been trying to see which item outputs html/ content from campaign …

---

<div class="post-metadata">

**Author:** ![LinkYourTech](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@LinkYourTech](https://community.make.com/u/LinkYourTech)\
**Post date:** [August 17, 2024, 2:52am UTC](https://community.make.com/t/create-linkedin-organization-image-post-from-mailchimp-campaign/51014/9 "2024-08-17T02:52:32Z")

</div>

What is in the “inline css”?  
Maybe try the get campaign module and see if that pulls more data on the campaign?

I don’t use mailchimp so not too familar with thier data structure.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [November 15, 2024, 3:57am UTC](https://community.make.com/t/create-linkedin-organization-image-post-from-mailchimp-campaign/51014/10 "2024-11-15T03:57:07Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


