facebook-scraper | Scrape Facebook public pages without an API key | Scraper library

 by   kevinzg Python Version: 0.2.59 License: MIT

kandi X-RAY | facebook-scraper Summary

kandi X-RAY | facebook-scraper Summary

facebook-scraper is a Python library typically used in Automation, Scraper applications. facebook-scraper has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can install using 'pip install facebook-scraper' or download it from GitHub, PyPI.

Scrape Facebook public pages without an API key. Inspired by twitter-scraper.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              facebook-scraper has a medium active ecosystem.
              It has 1763 star(s) with 494 fork(s). There are 47 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 378 open issues and 356 have been closed. On average issues are closed in 57 days. There are 6 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of facebook-scraper is 0.2.59

            kandi-Quality Quality

              facebook-scraper has 0 bugs and 3 code smells.

            kandi-Security Security

              facebook-scraper has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              facebook-scraper code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              facebook-scraper is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              facebook-scraper releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              facebook-scraper saves you 400 person hours of effort in developing the same functionality from scratch.
              It has 951 lines of code, 65 functions and 10 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed facebook-scraper and discovered the below as its top functions. This is intended to give you an instant insight into facebook-scraper implemented functionality, and help decide if they suit your requirements.
            • Parse arguments
            • Set cookies
            • Get a single profile
            • Enable logging
            • Extracts the photos link
            • Extract the text of the article
            • Get posts by word
            • Login to the scraper session
            • Extracts share information from the post
            • Extract the time of the post
            • Extract post url
            • Remove query parameters from a URL
            • Fetch full post
            • Extract likes from post
            • Get all reactors
            • Get search pages by word
            • Return an iterable of friends
            • Extract comments
            • Get a list of Shop objects
            • Get information about a group
            • Get information about a given account
            • Get groups by search
            • Iterate over the pages of a hashtag
            • Iterate over group pages
            • Extract the video thumbnail
            • Return the live data object
            Get all kandi verified functions for this library.

            facebook-scraper Key Features

            No Key Features are available at this moment for facebook-scraper.

            facebook-scraper Examples and Code Snippets

            facebook-scraper,Sample Script
            Pythondot img1Lines of Code : 22dot img1License : Strong Copyleft (GPL-3.0)
            copy iconCopy
            #!/usr/bin/env python
            # -*- coding: utf-8 -*-
            
            import fb_scraper.prodcons
            
            APP_ID = ''
            APP_ID_SECRET = ''
            ACCESS_TOKEN = ''
            
            def main():
                mgr = fb_scraper.prodcons.Manager(
                    access_token=ACCESS_TOKEN,
                    api_key=APP_ID,
                    api_sec  
            Facebook scraper,Installation,Windows
            Pythondot img2Lines of Code : 2dot img2no licencesLicense : No License
            copy iconCopy
            pip install facebook-sdk
            conda install simplejson
              
            Facebook scraper,Installation,Linux/OS X
            Pythondot img3Lines of Code : 2dot img3no licencesLicense : No License
            copy iconCopy
            pip install facebook-sdk
            pip install simplejson
              
            How can I create a Python CSV file after scraping information from a web page?
            Pythondot img4Lines of Code : 10dot img4License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            open("facebook.csv", "w", newline="")
            
            import csv
            from facebook_scraper import get_posts
            for post in get_posts('bibliotecaunespbauru', pages=10):
                data = [post['post_id'], post['text'], post['image']]
                with op
            Facebook scraper 'NoneType' object has no attribute 'find' while get_post
            Pythondot img5Lines of Code : 6dot img5License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            try:
                for post in get_posts('ThaiPBSFan', pages=50):
                    print(post['text'][:100])
            except AttributeError:
                print("No more posts to get")
            
            Facebook graph api keyerror 'Next'
            Pythondot img6Lines of Code : 2dot img6License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            if 'paging' in statuses.keys() and 'next' in statuses['paging'] and statuses['paging']['next']:
            

            Community Discussions

            QUESTION

            How to run Symfony Process function inside queue jobs on laravel
            Asked 2020-Nov-25 at 14:12

            Now i'm doing some project use laravel framework. do i able to run Symfony Process function inside a queue jobs?

            ...

            ANSWER

            Answered 2020-Nov-25 at 14:12

            I think the problem is the paths. Replace the --filename option value with the absolute path (from /):

            Source https://stackoverflow.com/questions/64958105

            QUESTION

            do i able to run exec() on queue jobs for laravel
            Asked 2020-Nov-23 at 15:42

            now im doing laravel project and i want to run a command exec() on queue jobs. the Question is, do i really can run the command exec() on queue jobs?

            this what i've done, i create a jobs file call app/Jobs/GetData.php and create a simple code.

            ...

            ANSWER

            Answered 2020-Nov-23 at 15:42

            To solve the issue of non working command you have to either create env variables which points to Facebook-scraper or use the full path(absolute not relative) of facebook scraper package.

            So the process construction should be something like

            Source https://stackoverflow.com/questions/64968277

            QUESTION

            How can I create a Python CSV file after scraping information from a web page?
            Asked 2020-Nov-08 at 16:43

            I am writing a code (yes, I am new with this) to extract information from a page on facebook. I am using facebook-scraper to get the info. I need to create a CSV file to store this information, but I always come out empty.

            Original code

            ...

            ANSWER

            Answered 2020-Nov-08 at 16:43

            You have two issues with your code.

            The first problem is with how you create data

            Wrong

            [print(post['post_id']), print(post['text']), print(post['image'])]

            Why

            In this line you are printing as you get the values, the return value of a print is None and hence None is stored in the list.

            Old Output of data at each iteration: [None, None, None]

            Correction:

            [post['post_id'], post['text'], post['image']].

            Output of new data: ['2092819824183367', 'Biblioteca da Unesp em Bauru ganha nova identidade visual ❤️\n\nhttps://youtu.be/dTCGp1eGmtM\n\nYOUTUBE.COM\nBiblioteca da Unesp em Bauru ganha nova identidade visual', None]

            (PS : idk what that translates to)

            Second problem being the way you write to a file.

            Source https://stackoverflow.com/questions/64739026

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install facebook-scraper

            To install the latest release from PyPI:.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install facebook-scraper

          • CLONE
          • HTTPS

            https://github.com/kevinzg/facebook-scraper.git

          • CLI

            gh repo clone kevinzg/facebook-scraper

          • sshUrl

            git@github.com:kevinzg/facebook-scraper.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link