Skip to content

Instantly share code, notes, and snippets.

@sashaboulouds
sashaboulouds / dexscreener_trending_solana_pairs_websocket_scraper.py
Last active July 3, 2024 10:29
Collect every 10 seconds all h6 trending Solana pairs on DexScreener — and save to a .csv file 🦅
@sashaboulouds
sashaboulouds / linkedin_post_likers_scraper.py
Last active May 23, 2024 16:06
Collect up to 3000 likers from any LinkedIn post — and export to a .csv file 💞🔵
# =============================================================================
# Title: LinkedIn Post Likers Scraper
# Description: This script can scrape up to 3000 likers from any LinkedIn post.
# Author: Sasha Bouloudnine
# Date: 2024-03-05
#
# Usage:
# - Install requests using `pip install requests`.
# - Connect to LinkedIn and collect your `li_at` cookie.
# - Get your post URL.
@sashaboulouds
sashaboulouds / twitter_scraper.py
Last active February 10, 2024 21:13 — forked from lobstrio/twitter_scraper.py
Collect 100 first tweets from any user at any time — and export to a .csv file 🐦
# =============================================================================
# Title: Twitter Users Tweets Scraper
# Language: Python
# Description: This script does scrape the first 100 tweets
# of any Twitter User.
# Author: Sasha Bouloudnine
# Date: 2023-08-08
#
# Usage:
# - Make sure you have the required libraries installed by running:
@sashaboulouds
sashaboulouds / scrape_ahrefs_posts_and_check_img_attributes.py
Created November 23, 2023 15:10
🖼️ Python script to scrape some ahrefs blog posts — and check img_url and img_name attributes
from lxml import html
import requests
import csv
urls = """https://ahrefs.com/blog/seo-team/
https://ahrefs.com/blog/seo-on-page-factors/
https://ahrefs.com/blog/content-briefs/
https://ahrefs.com/blog/keyword-clustering/
https://ahrefs.com/blog/white-hat-link-building-techniques/
https://ahrefs.com/blog/programmatic-seo/
@sashaboulouds
sashaboulouds / scrape_ahrefs_blog_posts_and_post_on_slack.py
Created November 23, 2023 14:58
📝 Scrape data from ahrefs blog archives — and post the link immediately on Slack channel
import requests
import json
from lxml import html
import datetime
import time
import csv
from retry import retry
import os
import re