changedotorgscraper 0.0.1__tar.gz → 0.0.3__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.
- {changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/ChangeDotOrgScraper.egg-info/PKG-INFO +5 -9
- {changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/PKG-INFO +5 -9
- {changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/setup.py +1 -1
- {changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/ChangeDotOrgScraper/ChangeDotOrgScraper.py +0 -0
- {changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/ChangeDotOrgScraper/__init__.py +0 -0
- {changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/ChangeDotOrgScraper.egg-info/SOURCES.txt +0 -0
- {changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/ChangeDotOrgScraper.egg-info/dependency_links.txt +0 -0
- {changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/ChangeDotOrgScraper.egg-info/requires.txt +0 -0
- {changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/ChangeDotOrgScraper.egg-info/top_level.txt +0 -0
- {changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/LICENSE +0 -0
- {changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/setup.cfg +0 -0
{changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/ChangeDotOrgScraper.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ChangeDotOrgScraper
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: Scrapes petitions and corresponding information from change.org
|
|
5
5
|
Author: Charles Alba
|
|
6
6
|
Author-email: alba@wustl.edu
|
|
@@ -23,7 +23,7 @@ Requires-Dist: ast
|
|
|
23
23
|
|
|
24
24
|
Scrapes petitions from [change.org](https://www.change.org/).
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
[](https://github.com/cja5553/change_org_scraper)
|
|
29
|
-
|
|
28
|
+
[](https://pypi.org/project/ChangeDotOrgScraper/) [](https://github.com/cja5553/change_org_scraper)
|
|
29
|
+
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
## Quick Start
|
|
33
33
|
|
|
34
34
|
Here we provide a quick example on how you can use `ChangeDotOrgScraper` to scrape petitions right from [change.org](https://www.change.org/).
|
|
35
35
|
|
|
@@ -33,12 +33,10 @@ from ChangeDotOrgScraper import scrape_petitions
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
# Specify the url of your scrape.org searches
|
|
36
36
|
|
|
37
37
|
## for instance, we shall scrape petitions from the search "supplemental nutrition assistance program"
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
39
|
url='https://www.change.org/search?q=Supplemental%20Nutrition%20Assistance%20Program&offset=0'
|
|
42
40
|
|
|
43
41
|
|
|
44
42
|
|
|
45
43
|
# scrape the petition data from change.org
|
|
46
44
|
|
|
47
45
|
SNAP_petitions_df=scrape_petitions(url)
|
|
48
46
|
|
|
49
|
-
|
|
50
|
-
|
|
51
47
|
print(SNAP_petitions_df)
|
|
52
48
|
|
|
53
49
|
```
|
|
54
50
|
|
|
55
51
|
It returns a dataframe with all the petitions related to SNAP as well as corresponding details (eg description, date created, target audience signature count, location created, victory status, etc).
|
|
56
52
|
|
|
@@ -72,7 +70,7 @@ This package was made as part of a larger study on food stamps (i.e., SNAP), the
|
|
|
72
70
|
|
|
73
71
|
|
|
74
72
|
However, if you wish to cite, you may cite:
|
|
75
73
|
|
|
76
74
|
|
|
77
75
|
|
|
78
|
-
C Alba (2024)
|
|
79
|
-
|
|
76
|
+
C Alba (2024) `ChangeDotOrgScraper`: A python package to scrape petitions from change.org. PyPi.
|
|
77
|
+
|
|
80
78
|
|
|
81
79
|
|
|
82
80
|
# Questions?
|
|
83
81
|
|
|
84
82
|
Contact me at [alba@wusl.edu](mailto:alba@wusl.edu)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ChangeDotOrgScraper
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: Scrapes petitions and corresponding information from change.org
|
|
5
5
|
Author: Charles Alba
|
|
6
6
|
Author-email: alba@wustl.edu
|
|
@@ -23,7 +23,7 @@ Requires-Dist: ast
|
|
|
23
23
|
|
|
24
24
|
Scrapes petitions from [change.org](https://www.change.org/).
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
[](https://github.com/cja5553/change_org_scraper)
|
|
29
|
-
|
|
28
|
+
[](https://pypi.org/project/ChangeDotOrgScraper/) [](https://github.com/cja5553/change_org_scraper)
|
|
29
|
+
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
## Quick Start
|
|
33
33
|
|
|
34
34
|
Here we provide a quick example on how you can use `ChangeDotOrgScraper` to scrape petitions right from [change.org](https://www.change.org/).
|
|
35
35
|
|
|
@@ -33,12 +33,10 @@ from ChangeDotOrgScraper import scrape_petitions
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
# Specify the url of your scrape.org searches
|
|
36
36
|
|
|
37
37
|
## for instance, we shall scrape petitions from the search "supplemental nutrition assistance program"
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
39
|
url='https://www.change.org/search?q=Supplemental%20Nutrition%20Assistance%20Program&offset=0'
|
|
42
40
|
|
|
43
41
|
|
|
44
42
|
|
|
45
43
|
# scrape the petition data from change.org
|
|
46
44
|
|
|
47
45
|
SNAP_petitions_df=scrape_petitions(url)
|
|
48
46
|
|
|
49
|
-
|
|
50
|
-
|
|
51
47
|
print(SNAP_petitions_df)
|
|
52
48
|
|
|
53
49
|
```
|
|
54
50
|
|
|
55
51
|
It returns a dataframe with all the petitions related to SNAP as well as corresponding details (eg description, date created, target audience signature count, location created, victory status, etc).
|
|
56
52
|
|
|
@@ -72,7 +70,7 @@ This package was made as part of a larger study on food stamps (i.e., SNAP), the
|
|
|
72
70
|
|
|
73
71
|
|
|
74
72
|
However, if you wish to cite, you may cite:
|
|
75
73
|
|
|
76
74
|
|
|
77
75
|
|
|
78
|
-
C Alba (2024)
|
|
79
|
-
|
|
76
|
+
C Alba (2024) `ChangeDotOrgScraper`: A python package to scrape petitions from change.org. PyPi.
|
|
77
|
+
|
|
80
78
|
|
|
81
79
|
|
|
82
80
|
# Questions?
|
|
83
81
|
|
|
84
82
|
Contact me at [alba@wusl.edu](mailto:alba@wusl.edu)
|
|
@@ -6,7 +6,7 @@ here = os.path.abspath(os.path.dirname(__file__))
|
|
|
6
6
|
readme_path = os.path.join(here, "README.md")
|
|
7
7
|
with codecs.open(readme_path, encoding="utf-8") as fh:
|
|
8
8
|
long_description = fh.read()
|
|
9
|
-
VERSION = '0.0.
|
|
9
|
+
VERSION = '0.0.3'
|
|
10
10
|
DESCRIPTION = 'Scrapes petitions and corresponding information from change.org'
|
|
11
11
|
LONG_DESCRIPTION = 'A package scrapes all petition information, including the title, Description, target audience, signature count, creator name, date created, location created, and victory status, upon providing the url of the change.org search.'
|
|
12
12
|
|
{changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/ChangeDotOrgScraper/ChangeDotOrgScraper.py
RENAMED
|
File without changes
|
|
File without changes
|
{changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/ChangeDotOrgScraper.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/ChangeDotOrgScraper.egg-info/requires.txt
RENAMED
|
File without changes
|
{changedotorgscraper-0.0.1 → changedotorgscraper-0.0.3}/ChangeDotOrgScraper.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|