Find relevant brands Instagram accounts from a list on the web

A python gist to share - this time, the goal is to go over a list of brands featured on a retailer website and find all their Instagram accounts. Same principle is valid to go though Linkedin, Facebook & co.

We avoid API limitations of specific websites by using Google Search results.

## This script scraps Google to find relevant Instagram accounts

import requests
from lxml import html
from bs4 import BeautifulSoup
from googlesearch import search
import time

r = requests.get("https://poshmark.com/brands")
print (r.status_code == requests.codes.ok)

soup = BeautifulSoup(r.text, "html.parser")

for link in soup.find_all(class_="directory"):
    alllinks = ""
    for url in search('"'+link.string + '" account site:instagram.com', stop=1):
        if "/p/" not in url:
            if "/locations/" not in url:
                if "/tags/" not in url:
                    alllinks = alllinks + url + ","
    print(link.string + "," + alllinks)
    time.sleep(5.5)
Auteur : 
Mehdi BOUFOUS
Retrouvez-nous sur YouTube pour des analyses marketing hebdomadaires.
▶ Je m'abonne !
Abonnez-vous à notre podcast hebdomadaire 3615 Marketing.
▶ Notre podcast
Author : 
Mehdi BOUFOUS
Subscribe onYouTube for weekly growth ecommerce best practices.
▶ Subscribe !
Connect with me on Linkedin!
▶ Connect
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

>

Get the right insights for your brand from your data & analytics

Measure what matters - the rest doesn’t count.

Measure what matters.

>

Your marketing operations, on steroids

Do more with less

Do more with less

Growth Insights • More articles

The Perfect Email Journey to get back +25% of your lost checkouts

I'm sharing here a proven tactic that drive results to get back at least 25% of your lost checkouts, while the e-commerce average is around 8%.

Read →

Your CRM action plan to take your ecommerce store to the next level [checklist included]

Launching an ecommerce store? You have everything ready, your products, your website, your design - even your analytics? Yupee !But how about your CRM ? In this article, we'll review a simple go-to plan you can start with today to extend your CRM capabilities. Let's dive in!

Read →

Facebook Ads Budget & Profitability Calculator

This calculator will let you know which budget you'll need on Facebook - and if your ads are profitable.‍

Read →

Emails Metrics A/B Test Significance Test

This email A/B test significance test will let you know which version of your email A/B test is the most performant - and on which metrics. Plus, we'll display which recommandations you can take.

Read →

How to Create SEO-Optimized FAQs To Get More Traffic

SEO-optimized FAQ for your eCommerce store gives people the information they're looking for without them having to leave your website or call customer service.

Read →

How Much Does an Ecommerce Website Cost?

The perennial, ever-so-sticky question: How much does an e-commerce website cost? The answers will vary. Also, the answer you don’t like: It depends. 

Read →

eCommerce Personalization Examples & Tactics For Shopify

Personalizing your eCommerce site is a great way to improve conversion rates.

Read →

How to Create FAQ Pages For eCommerce: Best Practices for 2023

Learn how to create FAQ (Frequently Asked Questions) for eCommerce and you’d not only do a service for your potential customers but also save time answering questions (on live chat, email, phone, or otherwise). 

Read →

Programmatic SEO and eCommerce: What are some best practices? 

Search Engine Optimization (SEO) is key to getting your website found and for you to take advantage of the phenomenal use of search engines as the starting point for most users’ journey on the web -- to find answers, to look for information, to compare product A with product B, to look for solutions, to find local stores or merchants, and also to buy. 

Read →

Proven eCommerce Marketing Strategies To Try in 2023

As far as proven eCommerce marketing strategies go, while we use the word “try” in the title, what we really mean is that you “should”. By the end of 2022, global eCommerce will be worth a whopping $5.55 Trillion. By 2023, eCommerce is going to be worth $6.17 Trillion. If anything, eCommerce is only going to get bigger and is a viable opportunity for any eCommerce brand.

Read →

Why Do You Need Landing Pages For eCommerce Sites? 

Landing pages -- unlike regular pages -- help convert better. Use them generously for all campaigns. eCommerce conversions -- along with sign ups with tracking pixels happen on landing pages. Sales happen on eCommerce product pages. All of this is tracked. 

Read →

Big data for Ecommerce Small Businesses

One way to challenge big brands is to leverage data. Which data? Yours

Read →

What is a Good Conversion Rate On Shopify? [& Tips On How to Improve Conversions]

To help boost your Shopify store conversion rates, you’ll need a holistic approach.

Read →

Benchmark - Email strategies you can learn from these DTC Brands

What do customers want to see? Truth is, it really depends on what you offer and how you want to brand your business. Overall, here are the things that we highly suggest you consider when writing your newsletter.

Read →

Growth Blog • D'autres articles

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
▲ hutte • que 2021 soit spécial • réalisé avec attention