{"id":21031669,"url":"https://github.com/passivebot/facebook-marketplace-scraper","last_synced_at":"2025-05-15T11:33:44.882Z","repository":{"id":136932003,"uuid":"608997397","full_name":"passivebot/facebook-marketplace-scraper","owner":"passivebot","description":"This repository contains a script to scrape Facebook Marketplace data using Playwright, BeautifulSoup and Streamlit.","archived":false,"fork":false,"pushed_at":"2024-01-16T20:37:02.000Z","size":680,"stargazers_count":99,"open_issues_count":5,"forks_count":27,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-01-17T04:46:38.938Z","etag":null,"topics":["database","facebook","facebook-marketing-automation","facebook-marketplace","playwright","playwright-python","python","sqlite3","web-automation","web-scraper","web-scraping"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/passivebot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-03-03T06:43:55.000Z","updated_at":"2024-01-15T02:30:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"4693f40a-2b75-4218-84b3-7ca5a69dfba2","html_url":"https://github.com/passivebot/facebook-marketplace-scraper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passivebot%2Ffacebook-marketplace-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passivebot%2Ffacebook-marketplace-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passivebot%2Ffacebook-marketplace-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passivebot%2Ffacebook-marketplace-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/passivebot","download_url":"https://codeload.github.com/passivebot/facebook-marketplace-scraper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225349407,"owners_count":17460373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","facebook","facebook-marketing-automation","facebook-marketplace","playwright","playwright-python","python","sqlite3","web-automation","web-scraper","web-scraping"],"created_at":"2024-11-19T12:29:55.854Z","updated_at":"2024-11-19T12:29:56.663Z","avatar_url":"https://github.com/passivebot.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# facebook-marketplace-scraper\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://i.imgur.com/YXkulJV.png\"\u003e\n\n\u003c/p\u003e\n\u003ch3 align=\"center\"\u003eAn open-source Python program to scrape Facebook Marketplace using Playwright, BeautifulSoup, and FastAPI with a Streamlit GUI.\n\u003ch3 align=\"center\"\u003e\n\n```diff\nYou use the software provided at your own risk. I cannot be held responsible for any potential consequences, including potential bans from Meta.\n```\n### Overview\nThis open-source program uses Python to scrape data from Facebook Marketplace. The program uses Playwright to navigate the Facebook Marketplace website and BeautifulSoup to parse the HTML and extract relevant data. It then displays the results in a Streamlit GUI.\n\n### Customization\nThis program can be customized to your personal/organizational needs. For more information, please get in touch with me at harmindernijjar1996@gmail.com\n- Streamlit\n- Playwright\n- BeautifulSoup \n  \n### Language: \n- [Python](https://www.python.org/)\n  \n### Flow diagrams:\n\n### Requirements:\n- Python 3.x\n- Playwright\n- Streamlit\n- BeautifulSoup \n  \n### Modules:\n- Playwright for web crawling\n- BeautifulSoup for HTML parsing\n- FastAPI for API creation\n- JSON for data formatting\n- Uvicorn for running the server\n \n### API:\n- Root: Displays a welcome message\n- Data scraping: Parameters include city, query, and max price\n- IP information retrieval\n  \n### Implementation\n- Browser automation and data scraping using Playwright\n- HTML content parsing with BeautifulSoup\n- Data returned in JSON format\n- Application server run using Uvicorn\n\n### Features:\n- List of supported cities for scraping.\n- User inputs for city, search query, and maximum price.\n- Submission button to start scraping.\n- Display of scraping results including number of results, images, prices, locations, and item URLs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassivebot%2Ffacebook-marketplace-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpassivebot%2Ffacebook-marketplace-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassivebot%2Ffacebook-marketplace-scraper/lists"}