Skip to content

"instagram-post-fetcher" is a Python module leveraging Selenium to extract Instagram post details, including account username, descriptions, media URLs, and post timestamps. Simplifying access to Instagram data for analytics and research.

License

Notifications You must be signed in to change notification settings

odevjorge/instagram-post-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instagram Post Fetcher

The Instagram Post Fetcher is a Python module designed to extract information from Instagram posts using Selenium.

Features

  • Fetches post data including account username, descriptions, media URLs, and post timestamps.
  • Utilizes Selenium for web scraping tasks.
  • Provides a modular structure for easy integration into other projects or workflows.
  • Supports both image and video posts.
  • Requires Python 3.x and the Selenium library.

Installation

  1. Clone the repository:

    git clone https://github.com/odevjorge/instagram-post-fetcher.git
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    

Usage

  1. Import the DataManage class from the module:

    from core.management.data.post import DataManage
  2. Initialize a Manage object:

    data = DataManage()
  3. Retrieve post information using the provided methods:

    post_info = data.get_all_post_info()

Output Structure:

The output will be in the following structure:

{
 'account_username': 'solucoesdigitais',
 'description': '🔍 Estamos sempre buscando maneiras de aprimorar nossos serviços e atender melhor aos nossos clientes. Quais sugestões você tem para nós?\n\n',
 'tags': ['#solucoesdigitais', '#feedback', '#melhorias', '#atendimentocliente'],
 'images_url': {
     1: 'https://fakecdn.example.com/image1.jpg',
     2: 'https://fakecdn.example.com/image2.jpg'
 },
 'post_date': '2024-02-27T09:30:00.000Z'
}
  1. Analyze and process the retrieved post information as needed.

Usage Disclaimer

This tool is intended for legitimate and authorized use cases, such as research, data analysis, and automation of tasks within the boundaries of Instagram's terms of service. The developers of this tool do not endorse any unauthorized or unethical use of the software. Users are responsible for ensuring that their use of this tool complies with all applicable laws and regulations.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contribution

Contributions are welcome! Feel free to submit issues, feature requests, or pull requests to help improve this project.

About

"instagram-post-fetcher" is a Python module leveraging Selenium to extract Instagram post details, including account username, descriptions, media URLs, and post timestamps. Simplifying access to Instagram data for analytics and research.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages