fb_scraper_request 0.2.4__tar.gz → 0.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/PKG-INFO +2 -1
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request/facebook_graphql_scraper.py +0 -1
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request/utils/parser.py +0 -1
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request.egg-info/PKG-INFO +2 -1
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request.egg-info/SOURCES.txt +0 -1
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request.egg-info/requires.txt +1 -0
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/pyproject.toml +2 -1
- fb_scraper_request-0.2.4/fb_scraper_request/utils/locator.py +0 -54
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/LICENSE +0 -0
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/README.md +0 -0
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request/__init__.py +0 -0
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request/base/__init__.py +0 -0
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request/base/base_page.py +0 -0
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request/example.py +0 -0
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request/pages/__init__.py +0 -0
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request/pages/page_optional.py +0 -0
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request/tests/__init__.py +0 -0
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request/utils/__init__.py +0 -0
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request/utils/utils.py +0 -0
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request.egg-info/dependency_links.txt +0 -0
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request.egg-info/top_level.txt +0 -0
- {fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fb_scraper_request
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Facebook GraphQL Scraper - No login required, simple API to scrape public Facebook posts
|
|
5
5
|
Author-email: Nguyen Minh Quang <quangforwork1203@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -24,6 +24,7 @@ License-File: LICENSE
|
|
|
24
24
|
Requires-Dist: requests>=2.28.0
|
|
25
25
|
Requires-Dist: pytz
|
|
26
26
|
Requires-Dist: pip>=26.0.1
|
|
27
|
+
Requires-Dist: beautifulsoup4>=4.12.0
|
|
27
28
|
Provides-Extra: dev
|
|
28
29
|
Requires-Dist: build>=0.8.0; extra == "dev"
|
|
29
30
|
Requires-Dist: twine>=4.0.0; extra == "dev"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fb_scraper_request
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Facebook GraphQL Scraper - No login required, simple API to scrape public Facebook posts
|
|
5
5
|
Author-email: Nguyen Minh Quang <quangforwork1203@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -24,6 +24,7 @@ License-File: LICENSE
|
|
|
24
24
|
Requires-Dist: requests>=2.28.0
|
|
25
25
|
Requires-Dist: pytz
|
|
26
26
|
Requires-Dist: pip>=26.0.1
|
|
27
|
+
Requires-Dist: beautifulsoup4>=4.12.0
|
|
27
28
|
Provides-Extra: dev
|
|
28
29
|
Requires-Dist: build>=0.8.0; extra == "dev"
|
|
29
30
|
Requires-Dist: twine>=4.0.0; extra == "dev"
|
{fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request.egg-info/SOURCES.txt
RENAMED
|
@@ -15,6 +15,5 @@ fb_scraper_request/pages/__init__.py
|
|
|
15
15
|
fb_scraper_request/pages/page_optional.py
|
|
16
16
|
fb_scraper_request/tests/__init__.py
|
|
17
17
|
fb_scraper_request/utils/__init__.py
|
|
18
|
-
fb_scraper_request/utils/locator.py
|
|
19
18
|
fb_scraper_request/utils/parser.py
|
|
20
19
|
fb_scraper_request/utils/utils.py
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "fb_scraper_request"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.5"
|
|
4
4
|
description = "Facebook GraphQL Scraper - No login required, simple API to scrape public Facebook posts"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.9"
|
|
@@ -25,6 +25,7 @@ dependencies = [
|
|
|
25
25
|
"requests>=2.28.0",
|
|
26
26
|
"pytz",
|
|
27
27
|
"pip>=26.0.1",
|
|
28
|
+
"beautifulsoup4>=4.12.0",
|
|
28
29
|
]
|
|
29
30
|
|
|
30
31
|
[project.optional-dependencies]
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
from selenium.webdriver.common.by import By
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class PageXpath(object):
|
|
6
|
-
CLOSE_LOGIN_BUTTON = "/html/body/div[1]/div/div[1]/div/div[5]/div/div/div[1]/div/div[2]/div/div/div/div[1]/div/i"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class PageClass(object):
|
|
10
|
-
DISPLAY_MORE = "x1i10hfl xjbqb8w x1ejq31n xd10rxx x1sy0etr x17r0tee x972fbf xcfux6l x1qhh985 xm0m39n x9f619 x1ypdohk xt0psk2 xe8uvvx xdj266r x11i5rnm xat24cr x1mh8g0r xexx8yu x4uap5 x18d9i69 xkhd6sd x16tdsg8 x1hl2dhg xggy1nq x1a2a7pz xt0b8zv xzsf02u x1s688f"
|
|
11
|
-
CONTENTS = "x1yztbdb x1n2onr6 xh8yej3 x1ja2u2z"
|
|
12
|
-
CAPTION = "x193iq5w xeuugli x13faqbe x1vvkbs x1xmvt09 x1lliihq x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x xudqn12 x3x7a5m x6prxxf xvq8zen xo1l8bm xzsf02u x1yc453h"
|
|
13
|
-
CAPTION2 = "xdj266r x11i5rnm xat24cr x1mh8g0r x1vvkbs x126k92a"
|
|
14
|
-
POSTDATE = "x1i10hfl xjbqb8w x1ejq31n xd10rxx x1sy0etr x17r0tee x972fbf xcfux6l x1qhh985 xm0m39n x9f619 x1ypdohk xt0psk2 xe8uvvx xdj266r x11i5rnm xat24cr x1mh8g0r xexx8yu x4uap5 x18d9i69 xkhd6sd x16tdsg8 x1hl2dhg xggy1nq x1a2a7pz x1heor9g xt0b8zv xo1l8bm"
|
|
15
|
-
POSTDATE = "x1i10hfl xjbqb8w x1ejq31n xd10rxx x1sy0etr x17r0tee x972fbf xcfux6l x1qhh985 xm0m39n x9f619 x1ypdohk xt0psk2 xe8uvvx xdj266r x11i5rnm xat24cr x1mh8g0r xexx8yu x4uap5 x18d9i69 xkhd6sd x16tdsg8 x1hl2dhg xggy1nq x1a2a7pz x1heor9g xt0b8zv xo1l8bm"
|
|
16
|
-
LIKES = "x6s0dn4 x78zum5 x1iyjqo2 x6ikm8r x10wlt62"
|
|
17
|
-
COMMENT_SHARE_PARENTS = "x9f619 x1n2onr6 x1ja2u2z x78zum5 x2lah0s x1qughib x1qjc9v5 xozqiw3 x1q0g3np xykv574 xbmpl8g x4cne27 xifccgj"
|
|
18
|
-
COMMENT_SHARE_CHILD = "x193iq5w xeuugli x13faqbe x1vvkbs x1xmvt09 x1lliihq x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x xudqn12 x3x7a5m x6prxxf xvq8zen xo1l8bm xi81zsa"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class SoupElement(object):
|
|
22
|
-
pass
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class PageText(object):
|
|
26
|
-
DISPLAY_MORE = "查看更多"
|
|
27
|
-
DISPLAY_MORE2 = "顯示更多"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class PageRoleValue(object):
|
|
31
|
-
DISPLAY_MORE = "button"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class PageLocators(object):
|
|
35
|
-
CLOSELOGIN = (
|
|
36
|
-
By.XPATH, "//div[@aria-label='Close' or @aria-label='Dismiss' or @aria-label='關閉']|//div[@role='button' and (contains(@aria-label, 'Close') or contains(@aria-label, 'Dismiss'))]|/html/body/div[2]/div/div[1]/div/div[5]/div/div/div[1]/div/div[2]/div/div/div/div[1]/div/i")
|
|
37
|
-
DISPLAY_MORE = (
|
|
38
|
-
By.XPATH, f"//div[@class='{PageClass.DISPLAY_MORE}' and @role='{PageRoleValue.DISPLAY_MORE}' and text()='{PageText.DISPLAY_MORE}']")
|
|
39
|
-
|
|
40
|
-
LOGGINUSR1 = (
|
|
41
|
-
"/html/body/div[1]/div[1]/div[1]/div/div/div/div[2]/div/div[1]/form/div[1]/div[1]/input"
|
|
42
|
-
)
|
|
43
|
-
LOGGINPWD1 = (
|
|
44
|
-
"/html/body/div[1]/div[1]/div[1]/div/div/div/div[2]/div/div[1]/form/div[1]/div[2]/div/input"
|
|
45
|
-
)
|
|
46
|
-
|
|
47
|
-
LOGGINUSR2 = (
|
|
48
|
-
"/html/body/div[1]/div/div[1]/div/div[5]/div/div/div[1]/div/div[2]/div/div/div/div[2]/form/div/div[3]/div/label/div/div/input")
|
|
49
|
-
LOGGINPWD2 = (
|
|
50
|
-
"/html/body/div[1]/div/div[1]/div/div[5]/div/div/div[1]/div/div[2]/div/div/div/div[2]/form/div/div[4]/div/label/div/div/input")
|
|
51
|
-
|
|
52
|
-
# version.3: facebook login page
|
|
53
|
-
LOGGINUSR3 = (By.NAME, "email")
|
|
54
|
-
LOGGINPWD3 = (By.NAME, "pass")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request/pages/page_optional.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fb_scraper_request-0.2.4 → fb_scraper_request-0.2.5}/fb_scraper_request.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|