GithubHelp home page GithubHelp logo

oscarmmv / social-crawler Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 24.27 MB

๐Ÿ”Ž Scrape social media metrics across social networks

Home Page: https://oscarsaul.ca/social-crawler

License: MIT License

Python 100.00%
automation getrequests helium information-retrieval python selenium webscraper

social-crawler's Introduction

Social Crawler

This project utilizes Selenium, Helium, and HTTP GET requests to retrieve user information from Facebook, Instagram, TikTok, and Twitter. It is crucial to note that such actions are in violation of the terms of service of these platforms. Consequently, it is crucial to proceed with caution when deploying these scripts.

Additionally, the project incorporates a wrapper for the Sherlock Project.

Table of Contents

Installation

# clone the repo
$ git clone https://github.com/oscarmmv/social-crawler.git

# change the working directory to social crawler
$ cd social-crawler

Requirements

  • Project requires Google Chrome to be installed. (You can change to your perfered OS, please read WebDriver Documentation)
  • Supported Operating Systems:
    • win64
    • macx64
    • linuxx64
  driver_path = "path-to-drivers/chromedriver-<your-operating-system>/chromedriver"

Facebook Crawler

Import

  # Install the required dependencies
  # Import the scrape_facebook function into your Python script
  from facebook_scraper import scrape_facebook

Usage

  data = scrape_facebook(url)

Return Type The function returns a JSON object with the following structure:

data = {
  "Name": "user_name",
  "Status": "user_status",
  "Bio": "user_bio",
  "Followers": followers_count,
  "Likes": likes_count,
  "Email": "user_email",
  "Links": ["link_1", "link_2", ...]
}

Instagram Crawler

Import

  # Install the required dependencies
  # Import the scrape_instagram_user function into your Python script
  from instagram_scraper import scrape_instagram_user

Usage

  data = scrape_instagram_user(url)

Return Type The function returns a JSON object with the following structure:

data = {
  "Name": "user_name",
  "Followers": followers_count,
  "Following": following_count,
  "Posts": post_count
}

TikTok Crawler

Import
  # Install the required dependencies
  # Import the scrape_tiktok_profile function into your Python script
  from tiktok_scraper import scrape_tiktok_profile

Usage

  data = scrape_tiktok_profile(url)

Return Type The function returns a JSON object with the following structure:

data = {
  "Name": "name",
  "Username": "user_name",
  "Bio": "user_bio",
  "Link": link,
  "Followers": follower_count,
  "Following": following_count,
  "Like_Count": like_count
}

Twitter Crawler

Import

  # Install the required dependencies
  # Import the scrape_twitter_profile function into your Python script
  from twitter_scraper import scrape_twitter_profile

Usage

  # !!!Set username and password!!!
  data = scrape_twitter_profile(url)

Return Type The function returns a JSON object with the following structure:

data = {
  "Name": "name",
  "Bio": "user_bio",
  "Followers": follower_count,
  "Following": following_count,
  "Account Age": account_age,
  "Link": link,
}

Sherlock

This is a wrapper for the Sherlock Project

Usage

  # Install the required dependencies
  # run the tracker.py script
  python3 tracker.py

Input:"username" ---> returns all social media accounts associated to that username

social-crawler's People

Contributors

oscarmmv avatar

Stargazers

Ciphore avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.