changedotorgscraper 0.1.0__tar.gz → 0.1.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
- Name: ChangeDotOrgScraper
3
- Version: 0.1.0
2
+ Name: changedotorgscraper
3
+ Version: 0.1.3
4
4
  Summary: Scrapes online petition data from change.org
5
5
  Author: Charles Alba
6
6
  Author-email: alba@wustl.edu
@@ -17,64 +17,64 @@ Requires-Python: >=3.8
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
19
 
20
- `ChangeDotOrgScraper` is an Python package that allows you to scrape online petition data from [change.org](https://www.change.org/).
21
-
22
-
23
-
24
- [![pypi package](https://img.shields.io/badge/pypi_package-v0.1.0-brightgreen)](https://pypi.org/project/ChangeDotOrgScraper/) [![GitHub Source Code](https://img.shields.io/badge/github_source_code-source_code?logo=github&color=green)](https://github.com/cja5553/change_org_scraper)
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
- ## Installation
33
-
34
- To install in python, simply do the following:
35
-
36
- ```bash
37
-
38
- pip install ChangeDotOrgScraper
39
-
40
- ```
41
-
42
-
43
-
44
- ## Quick Start
45
-
46
- Here we provide a quick example on how you can use `ChangeDotOrgScraper` to scrape petition data right from [change.org](https://www.change.org/).
47
-
48
-
49
-
50
- ```python
51
-
52
- from ChangeDotOrgScraper import scrape_petitions
53
-
54
-
55
-
56
- # Specify the url of your scrape.org searches
57
-
58
- ## for instance, we shall scrape petitions from the search "supplemental nutrition assistance program"
59
-
60
- url='https://www.change.org/search?q=Supplemental%20Nutrition%20Assistance%20Program&offset=0'
61
-
62
-
63
-
64
- # scrape the petition data from change.org
65
-
66
- SNAP_petitions_df=scrape_petitions(url)
67
-
68
- print(SNAP_petitions_df)
69
-
70
- ```
71
-
72
- It returns a dataframe with all the petitions data, which contains details such as the petition(s) title, description, date created, target audience signature count, location created, victory status, etc.
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
- ## Requirements
81
-
82
- ### Required packages
83
-
84
- To use `ChangeDotOrgScraper`, you are required to have the following packages installed:
85
-
86
- - `requests`
87
-
88
- - `beautifulsoup4`
89
-
90
- - `tqdm`
91
-
92
- - `lxml`
93
-
94
- - `selenium`
95
-
96
- - `webdriver-manager`
97
-
98
- - `pandas`
99
-
100
- - `ast` (Python standard library)
101
-
102
- - `re` (Python standard library)
103
-
104
- - `json` (Python standard library)
105
-
106
- - `time` (Python standard library)
107
-
108
-
109
-
110
-
111
-
112
- If you do not have these packages installed in python, you can do the following:
113
-
114
- ```bash
115
-
116
- pip install requests beautifulsoup4 lxml tqdm pandas selenium webdriver-manager
117
-
118
- ```
119
-
120
-
121
-
122
-
123
-
124
- ## Citation
125
-
126
- This package was made as part of a larger study on policy-related opinion mining.
127
-
128
-
129
-
130
- If you wish to cite, you may cite:
131
-
132
-
133
-
134
- Alba, C., Warner, B. C., Saxena, A., Huang, J., & An, R. (2025, July). Towards robust sentiment analysis of temporally-sensitive policy-related online text. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 4: Student Research Workshop) (pp. 958-976). doi: 10.18653/v1/2025.acl-srw.70
135
-
136
-
137
-
138
- ## Questions?
139
-
140
- Contact me at [alba@wustl.edu](mailto:alba@wustl.edu)
141
-
20
+ `ChangeDotOrgScraper` is an Python package that allows you to scrape online petition data from [change.org](https://www.change.org/).
21
+
22
+ [![pypi package](https://img.shields.io/badge/pypi_package-v0.1.3-brightgreen)](https://pypi.org/project/ChangeDotOrgScraper/) [![GitHub Source Code](https://img.shields.io/badge/github_source_code-source_code?logo=github&color=green)](https://github.com/cja5553/change_org_scraper)
23
+
24
+
25
+
26
+ ## Installation
27
+ To install in python, simply do the following:
28
+ ```bash
29
+ pip install ChangeDotOrgScraper
30
+ ```
31
+
32
+ ## Quick Start
33
+ Here we provide a quick example on how you can use `ChangeDotOrgScraper` to scrape petition data right from [change.org](https://www.change.org/).
34
+
35
+ ```python
36
+ from ChangeDotOrgScraper import scrape_petitions
37
+
38
+ # Specify the url of your scrape.org searches
39
+ ## for instance, we shall scrape petitions from the search "supplemental nutrition assistance program"
40
+ url='https://www.change.org/search?q=Supplemental%20Nutrition%20Assistance%20Program&offset=0'
41
+
42
+ # scrape the petition data from change.org
43
+ SNAP_petitions_df=scrape_petitions(url)
44
+ print(SNAP_petitions_df)
45
+ ```
46
+ It returns a dataframe with all the petitions data, which contains details such as the petition(s) title, description, date created, target audience signature count, location created, victory status, etc.
47
+
48
+
49
+
50
+ ## Requirements
51
+ ### Required packages
52
+ To use `ChangeDotOrgScraper`, you are required to have the following packages installed:
53
+ - `requests`
54
+ - `beautifulsoup4`
55
+ - `tqdm`
56
+ - `lxml`
57
+ - `selenium`
58
+ - `webdriver-manager`
59
+ - `pandas`
60
+ - `ast` (Python standard library)
61
+ - `re` (Python standard library)
62
+ - `json` (Python standard library)
63
+ - `time` (Python standard library)
64
+
65
+
66
+ If you do not have these packages installed in python, you can do the following:
67
+ ```bash
68
+ pip install requests beautifulsoup4 lxml tqdm pandas selenium webdriver-manager
69
+ ```
70
+
71
+
72
+ ## Citation
73
+ This package was made as part of a larger study on policy-related opinion mining.
74
+
75
+ If you wish to cite, you may cite:
76
+
77
+ Alba, C., Warner, B. C., Saxena, A., Huang, J., & An, R. (2025, July). Towards robust sentiment analysis of temporally-sensitive policy-related online text. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 4: Student Research Workshop) (pp. 958-976). doi: 10.18653/v1/2025.acl-srw.70
78
+
79
+ ## Questions?
80
+ Contact me at [alba@wustl.edu](mailto:alba@wustl.edu)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
- Name: ChangeDotOrgScraper
3
- Version: 0.1.0
2
+ Name: changedotorgscraper
3
+ Version: 0.1.3
4
4
  Summary: Scrapes online petition data from change.org
5
5
  Author: Charles Alba
6
6
  Author-email: alba@wustl.edu
@@ -17,64 +17,64 @@ Requires-Python: >=3.8
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
19
 
20
- `ChangeDotOrgScraper` is an Python package that allows you to scrape online petition data from [change.org](https://www.change.org/).
21
-
22
-
23
-
24
- [![pypi package](https://img.shields.io/badge/pypi_package-v0.1.0-brightgreen)](https://pypi.org/project/ChangeDotOrgScraper/) [![GitHub Source Code](https://img.shields.io/badge/github_source_code-source_code?logo=github&color=green)](https://github.com/cja5553/change_org_scraper)
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
- ## Installation
33
-
34
- To install in python, simply do the following:
35
-
36
- ```bash
37
-
38
- pip install ChangeDotOrgScraper
39
-
40
- ```
41
-
42
-
43
-
44
- ## Quick Start
45
-
46
- Here we provide a quick example on how you can use `ChangeDotOrgScraper` to scrape petition data right from [change.org](https://www.change.org/).
47
-
48
-
49
-
50
- ```python
51
-
52
- from ChangeDotOrgScraper import scrape_petitions
53
-
54
-
55
-
56
- # Specify the url of your scrape.org searches
57
-
58
- ## for instance, we shall scrape petitions from the search "supplemental nutrition assistance program"
59
-
60
- url='https://www.change.org/search?q=Supplemental%20Nutrition%20Assistance%20Program&offset=0'
61
-
62
-
63
-
64
- # scrape the petition data from change.org
65
-
66
- SNAP_petitions_df=scrape_petitions(url)
67
-
68
- print(SNAP_petitions_df)
69
-
70
- ```
71
-
72
- It returns a dataframe with all the petitions data, which contains details such as the petition(s) title, description, date created, target audience signature count, location created, victory status, etc.
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
- ## Requirements
81
-
82
- ### Required packages
83
-
84
- To use `ChangeDotOrgScraper`, you are required to have the following packages installed:
85
-
86
- - `requests`
87
-
88
- - `beautifulsoup4`
89
-
90
- - `tqdm`
91
-
92
- - `lxml`
93
-
94
- - `selenium`
95
-
96
- - `webdriver-manager`
97
-
98
- - `pandas`
99
-
100
- - `ast` (Python standard library)
101
-
102
- - `re` (Python standard library)
103
-
104
- - `json` (Python standard library)
105
-
106
- - `time` (Python standard library)
107
-
108
-
109
-
110
-
111
-
112
- If you do not have these packages installed in python, you can do the following:
113
-
114
- ```bash
115
-
116
- pip install requests beautifulsoup4 lxml tqdm pandas selenium webdriver-manager
117
-
118
- ```
119
-
120
-
121
-
122
-
123
-
124
- ## Citation
125
-
126
- This package was made as part of a larger study on policy-related opinion mining.
127
-
128
-
129
-
130
- If you wish to cite, you may cite:
131
-
132
-
133
-
134
- Alba, C., Warner, B. C., Saxena, A., Huang, J., & An, R. (2025, July). Towards robust sentiment analysis of temporally-sensitive policy-related online text. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 4: Student Research Workshop) (pp. 958-976). doi: 10.18653/v1/2025.acl-srw.70
135
-
136
-
137
-
138
- ## Questions?
139
-
140
- Contact me at [alba@wustl.edu](mailto:alba@wustl.edu)
141
-
20
+ `ChangeDotOrgScraper` is an Python package that allows you to scrape online petition data from [change.org](https://www.change.org/).
21
+
22
+ [![pypi package](https://img.shields.io/badge/pypi_package-v0.1.3-brightgreen)](https://pypi.org/project/ChangeDotOrgScraper/) [![GitHub Source Code](https://img.shields.io/badge/github_source_code-source_code?logo=github&color=green)](https://github.com/cja5553/change_org_scraper)
23
+
24
+
25
+
26
+ ## Installation
27
+ To install in python, simply do the following:
28
+ ```bash
29
+ pip install ChangeDotOrgScraper
30
+ ```
31
+
32
+ ## Quick Start
33
+ Here we provide a quick example on how you can use `ChangeDotOrgScraper` to scrape petition data right from [change.org](https://www.change.org/).
34
+
35
+ ```python
36
+ from ChangeDotOrgScraper import scrape_petitions
37
+
38
+ # Specify the url of your scrape.org searches
39
+ ## for instance, we shall scrape petitions from the search "supplemental nutrition assistance program"
40
+ url='https://www.change.org/search?q=Supplemental%20Nutrition%20Assistance%20Program&offset=0'
41
+
42
+ # scrape the petition data from change.org
43
+ SNAP_petitions_df=scrape_petitions(url)
44
+ print(SNAP_petitions_df)
45
+ ```
46
+ It returns a dataframe with all the petitions data, which contains details such as the petition(s) title, description, date created, target audience signature count, location created, victory status, etc.
47
+
48
+
49
+
50
+ ## Requirements
51
+ ### Required packages
52
+ To use `ChangeDotOrgScraper`, you are required to have the following packages installed:
53
+ - `requests`
54
+ - `beautifulsoup4`
55
+ - `tqdm`
56
+ - `lxml`
57
+ - `selenium`
58
+ - `webdriver-manager`
59
+ - `pandas`
60
+ - `ast` (Python standard library)
61
+ - `re` (Python standard library)
62
+ - `json` (Python standard library)
63
+ - `time` (Python standard library)
64
+
65
+
66
+ If you do not have these packages installed in python, you can do the following:
67
+ ```bash
68
+ pip install requests beautifulsoup4 lxml tqdm pandas selenium webdriver-manager
69
+ ```
70
+
71
+
72
+ ## Citation
73
+ This package was made as part of a larger study on policy-related opinion mining.
74
+
75
+ If you wish to cite, you may cite:
76
+
77
+ Alba, C., Warner, B. C., Saxena, A., Huang, J., & An, R. (2025, July). Towards robust sentiment analysis of temporally-sensitive policy-related online text. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 4: Student Research Workshop) (pp. 958-976). doi: 10.18653/v1/2025.acl-srw.70
78
+
79
+ ## Questions?
80
+ Contact me at [alba@wustl.edu](mailto:alba@wustl.edu)
@@ -0,0 +1,9 @@
1
+ LICENSE
2
+ setup.py
3
+ ChangeDotOrgScraper/ChangeDotOrgScraper.py
4
+ ChangeDotOrgScraper/__init__.py
5
+ changedotorgscraper.egg-info/PKG-INFO
6
+ changedotorgscraper.egg-info/SOURCES.txt
7
+ changedotorgscraper.egg-info/dependency_links.txt
8
+ changedotorgscraper.egg-info/requires.txt
9
+ changedotorgscraper.egg-info/top_level.txt
@@ -1,25 +1,29 @@
1
1
  from setuptools import setup, find_packages
2
- import codecs
3
2
  import os
4
3
 
5
4
  here = os.path.abspath(os.path.dirname(__file__))
6
5
  readme_path = os.path.join(here, "README.md")
7
- with codecs.open(readme_path, encoding="utf-8") as fh:
8
- long_description = fh.read()
9
6
 
10
- VERSION = '0.1.0'
11
- DESCRIPTION = 'Scrapes online petition data from change.org'
12
- 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.'
7
+ # Safe README load (prevents install crash if README.md missing in sdist)
8
+ if os.path.exists(readme_path):
9
+ with open(readme_path, "r", encoding="utf-8") as fh:
10
+ long_description = fh.read()
11
+ else:
12
+ long_description = ""
13
+
14
+ VERSION = "0.1.3"
15
+ DESCRIPTION = "Scrapes online petition data from change.org"
13
16
 
14
17
  setup(
15
- name="ChangeDotOrgScraper",
18
+ name="changedotorgscraper", # normalized name for PyPI filenames
16
19
  version=VERSION,
17
20
  author="Charles Alba",
18
21
  author_email="alba@wustl.edu",
19
22
  description=DESCRIPTION,
20
- long_description_content_type="text/markdown",
21
23
  long_description=long_description,
24
+ long_description_content_type="text/markdown",
22
25
  packages=find_packages(),
26
+ include_package_data=True, # include README.md via MANIFEST.in
23
27
  install_requires=[
24
28
  "requests",
25
29
  "beautifulsoup4",
@@ -42,14 +46,3 @@ setup(
42
46
  ],
43
47
  python_requires=">=3.8",
44
48
  )
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
@@ -1,9 +0,0 @@
1
- LICENSE
2
- setup.py
3
- ChangeDotOrgScraper/ChangeDotOrgScraper.py
4
- ChangeDotOrgScraper/__init__.py
5
- ChangeDotOrgScraper.egg-info/PKG-INFO
6
- ChangeDotOrgScraper.egg-info/SOURCES.txt
7
- ChangeDotOrgScraper.egg-info/dependency_links.txt
8
- ChangeDotOrgScraper.egg-info/requires.txt
9
- ChangeDotOrgScraper.egg-info/top_level.txt