changedotorgscraper 0.0.2__tar.gz → 0.0.4__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.2 → changedotorgscraper-0.0.4}/ChangeDotOrgScraper.egg-info/PKG-INFO +14 -18
- {changedotorgscraper-0.0.2 → changedotorgscraper-0.0.4}/PKG-INFO +14 -18
- {changedotorgscraper-0.0.2 → changedotorgscraper-0.0.4}/setup.py +3 -3
- {changedotorgscraper-0.0.2 → changedotorgscraper-0.0.4}/ChangeDotOrgScraper/ChangeDotOrgScraper.py +0 -0
- {changedotorgscraper-0.0.2 → changedotorgscraper-0.0.4}/ChangeDotOrgScraper/__init__.py +0 -0
- {changedotorgscraper-0.0.2 → changedotorgscraper-0.0.4}/ChangeDotOrgScraper.egg-info/SOURCES.txt +0 -0
- {changedotorgscraper-0.0.2 → changedotorgscraper-0.0.4}/ChangeDotOrgScraper.egg-info/dependency_links.txt +0 -0
- {changedotorgscraper-0.0.2 → changedotorgscraper-0.0.4}/ChangeDotOrgScraper.egg-info/requires.txt +0 -0
- {changedotorgscraper-0.0.2 → changedotorgscraper-0.0.4}/ChangeDotOrgScraper.egg-info/top_level.txt +0 -0
- {changedotorgscraper-0.0.2 → changedotorgscraper-0.0.4}/LICENSE +0 -0
- {changedotorgscraper-0.0.2 → changedotorgscraper-0.0.4}/setup.cfg +0 -0
{changedotorgscraper-0.0.2 → changedotorgscraper-0.0.4}/ChangeDotOrgScraper.egg-info/PKG-INFO
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ChangeDotOrgScraper
|
|
3
|
-
Version: 0.0.
|
|
4
|
-
Summary: Scrapes
|
|
3
|
+
Version: 0.0.4
|
|
4
|
+
Summary: Scrapes online petition data from change.org
|
|
5
5
|
Author: Charles Alba
|
|
6
6
|
Author-email: alba@wustl.edu
|
|
7
7
|
License: MIT
|
|
@@ -21,27 +21,25 @@ Requires-Dist: tqdm
|
|
|
21
21
|
Requires-Dist: pandas
|
|
22
22
|
Requires-Dist: ast
|
|
23
23
|
|
|
24
|
-
Scrapes
|
|
25
|
-
|
|
24
|
+
Scrapes online petition data from [change.org](https://www.change.org/).
|
|
25
|
+
|
|
26
26
|
|
|
27
27
|
|
|
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
|
-
Here we provide a quick example on how you can use `ChangeDotOrgScraper` to scrape
|
|
35
|
-
|
|
34
|
+
Here we provide a quick example on how you can use `ChangeDotOrgScraper` to scrape petition data right from [change.org](https://www.change.org/).
|
|
35
|
+
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
```python
|
|
39
39
|
|
|
40
40
|
from ChangeDotOrgScraper import scrape_petitions
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
# Specify the url of your scrape.org searches
|
|
45
45
|
|
|
46
46
|
## for instance, we shall scrape petitions from the search "supplemental nutrition assistance program"
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
48
|
url='https://www.change.org/search?q=Supplemental%20Nutrition%20Assistance%20Program&offset=0'
|
|
51
49
|
|
|
52
50
|
|
|
53
51
|
|
|
54
52
|
# scrape the petition data from change.org
|
|
55
53
|
|
|
56
54
|
SNAP_petitions_df=scrape_petitions(url)
|
|
57
55
|
|
|
58
|
-
|
|
59
|
-
|
|
60
56
|
print(SNAP_petitions_df)
|
|
61
57
|
|
|
62
58
|
```
|
|
63
59
|
|
|
64
|
-
It returns a dataframe with all the petitions
|
|
65
|
-
|
|
60
|
+
It returns a dataframe with all the petitions data with details such as the petition(s) description, date created, target audience signature count, location created, victory status, etc.
|
|
61
|
+
|
|
66
62
|
|
|
67
63
|
|
|
68
64
|
|
|
69
65
|
|
|
70
66
|
|
|
71
67
|
|
|
@@ -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) `ChangeDotOrgScraper`: A python package to scrape
|
|
79
|
-
|
|
76
|
+
C Alba (2024) `ChangeDotOrgScraper`: A python package to scrape petition data from change.org. PyPi.
|
|
77
|
+
|
|
80
78
|
|
|
81
79
|
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
## Questions?
|
|
81
|
+
|
|
84
82
|
Contact me at [alba@wusl.edu](mailto:alba@wusl.edu)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ChangeDotOrgScraper
|
|
3
|
-
Version: 0.0.
|
|
4
|
-
Summary: Scrapes
|
|
3
|
+
Version: 0.0.4
|
|
4
|
+
Summary: Scrapes online petition data from change.org
|
|
5
5
|
Author: Charles Alba
|
|
6
6
|
Author-email: alba@wustl.edu
|
|
7
7
|
License: MIT
|
|
@@ -21,27 +21,25 @@ Requires-Dist: tqdm
|
|
|
21
21
|
Requires-Dist: pandas
|
|
22
22
|
Requires-Dist: ast
|
|
23
23
|
|
|
24
|
-
Scrapes
|
|
25
|
-
|
|
24
|
+
Scrapes online petition data from [change.org](https://www.change.org/).
|
|
25
|
+
|
|
26
26
|
|
|
27
27
|
|
|
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
|
-
Here we provide a quick example on how you can use `ChangeDotOrgScraper` to scrape
|
|
35
|
-
|
|
34
|
+
Here we provide a quick example on how you can use `ChangeDotOrgScraper` to scrape petition data right from [change.org](https://www.change.org/).
|
|
35
|
+
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
```python
|
|
39
39
|
|
|
40
40
|
from ChangeDotOrgScraper import scrape_petitions
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
# Specify the url of your scrape.org searches
|
|
45
45
|
|
|
46
46
|
## for instance, we shall scrape petitions from the search "supplemental nutrition assistance program"
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
48
|
url='https://www.change.org/search?q=Supplemental%20Nutrition%20Assistance%20Program&offset=0'
|
|
51
49
|
|
|
52
50
|
|
|
53
51
|
|
|
54
52
|
# scrape the petition data from change.org
|
|
55
53
|
|
|
56
54
|
SNAP_petitions_df=scrape_petitions(url)
|
|
57
55
|
|
|
58
|
-
|
|
59
|
-
|
|
60
56
|
print(SNAP_petitions_df)
|
|
61
57
|
|
|
62
58
|
```
|
|
63
59
|
|
|
64
|
-
It returns a dataframe with all the petitions
|
|
65
|
-
|
|
60
|
+
It returns a dataframe with all the petitions data with details such as the petition(s) description, date created, target audience signature count, location created, victory status, etc.
|
|
61
|
+
|
|
66
62
|
|
|
67
63
|
|
|
68
64
|
|
|
69
65
|
|
|
70
66
|
|
|
71
67
|
|
|
@@ -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) `ChangeDotOrgScraper`: A python package to scrape
|
|
79
|
-
|
|
76
|
+
C Alba (2024) `ChangeDotOrgScraper`: A python package to scrape petition data from change.org. PyPi.
|
|
77
|
+
|
|
80
78
|
|
|
81
79
|
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
## Questions?
|
|
81
|
+
|
|
84
82
|
Contact me at [alba@wusl.edu](mailto:alba@wusl.edu)
|
|
@@ -6,9 +6,9 @@ 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.
|
|
10
|
-
DESCRIPTION = 'Scrapes
|
|
11
|
-
LONG_DESCRIPTION = 'A package scrapes
|
|
9
|
+
VERSION = '0.0.4'
|
|
10
|
+
DESCRIPTION = 'Scrapes online petition data from change.org'
|
|
11
|
+
LONG_DESCRIPTION = 'A package that scrapes online petition data from change.org, including the title, description, target audience, signature count, creator name, date created, location created, and victory status. Works by simply providing the url of the change.org petition search.'
|
|
12
12
|
|
|
13
13
|
# Setting up
|
|
14
14
|
setup(
|
{changedotorgscraper-0.0.2 → changedotorgscraper-0.0.4}/ChangeDotOrgScraper/ChangeDotOrgScraper.py
RENAMED
|
File without changes
|
|
File without changes
|
{changedotorgscraper-0.0.2 → changedotorgscraper-0.0.4}/ChangeDotOrgScraper.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{changedotorgscraper-0.0.2 → changedotorgscraper-0.0.4}/ChangeDotOrgScraper.egg-info/requires.txt
RENAMED
|
File without changes
|
{changedotorgscraper-0.0.2 → changedotorgscraper-0.0.4}/ChangeDotOrgScraper.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|