changedotorgscraper 0.1.6__tar.gz → 0.1.7__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.4
2
2
  Name: changedotorgscraper
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Scrapes online petition data from change.org
5
5
  Author: Charles Alba
6
6
  Author-email: alba@wustl.edu
@@ -37,7 +37,7 @@ Dynamic: summary
37
37
 
38
38
  `changedotorgscraper` is an Python package that allows you to scrape online petition data from [change.org](https://www.change.org/).
39
39
 
40
- [![pypi package](https://img.shields.io/badge/pypi_package-v0.1.5-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)
40
+ [![pypi package](https://img.shields.io/badge/pypi_package-v0.1.7-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)
41
41
 
42
42
 
43
43
 
@@ -0,0 +1,61 @@
1
+ `changedotorgscraper` is an Python package that allows you to scrape online petition data from [change.org](https://www.change.org/).
2
+
3
+ [![pypi package](https://img.shields.io/badge/pypi_package-v0.1.7-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)
4
+
5
+
6
+
7
+ ## Installation
8
+ To install in python, simply do the following:
9
+ ```bash
10
+ pip install changedotorgscraper
11
+ ```
12
+
13
+ ## Quick Start
14
+ Here we provide a quick example on how you can use `changedotorgscraper` to scrape petition data right from [change.org](https://www.change.org/).
15
+
16
+ ```python
17
+ from changedotorgscraper import scrape_petitions
18
+
19
+ # Specify the url of your scrape.org searches
20
+ ## for instance, we shall scrape petitions from the search "supplemental nutrition assistance program"
21
+ url='https://www.change.org/search?q=Supplemental%20Nutrition%20Assistance%20Program&offset=0'
22
+
23
+ # scrape the petition data from change.org
24
+ SNAP_petitions_df=scrape_petitions(url)
25
+ print(SNAP_petitions_df)
26
+ ```
27
+ 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.
28
+
29
+
30
+
31
+ ## Requirements
32
+ ### Required packages
33
+ To use `changedotorgscraper`, you are required to have the following packages installed:
34
+ - `requests`
35
+ - `beautifulsoup4`
36
+ - `tqdm`
37
+ - `lxml`
38
+ - `selenium`
39
+ - `webdriver-manager`
40
+ - `pandas`
41
+ - `ast` (Python standard library)
42
+ - `re` (Python standard library)
43
+ - `json` (Python standard library)
44
+ - `time` (Python standard library)
45
+
46
+
47
+ If you do not have these packages installed in python, you can do the following:
48
+ ```bash
49
+ pip install requests beautifulsoup4 lxml tqdm pandas selenium webdriver-manager
50
+ ```
51
+
52
+
53
+ ## Citation
54
+ This package was made as part of a larger study on policy-related opinion mining.
55
+
56
+ If you wish to cite, you may cite:
57
+
58
+ 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
59
+
60
+ ## Questions?
61
+ Contact me at [alba@wustl.edu](mailto:alba@wustl.edu)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: changedotorgscraper
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Scrapes online petition data from change.org
5
5
  Author: Charles Alba
6
6
  Author-email: alba@wustl.edu
@@ -37,7 +37,7 @@ Dynamic: summary
37
37
 
38
38
  `changedotorgscraper` is an Python package that allows you to scrape online petition data from [change.org](https://www.change.org/).
39
39
 
40
- [![pypi package](https://img.shields.io/badge/pypi_package-v0.1.5-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)
40
+ [![pypi package](https://img.shields.io/badge/pypi_package-v0.1.7-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)
41
41
 
42
42
 
43
43
 
@@ -1,4 +1,5 @@
1
1
  LICENSE
2
+ README.md
2
3
  setup.py
3
4
  changedotorgscraper/__init__.py
4
5
  changedotorgscraper/changedotorgscraper.py
@@ -11,7 +11,7 @@ if os.path.exists(readme_path):
11
11
  else:
12
12
  long_description = ""
13
13
 
14
- VERSION = "0.1.6"
14
+ VERSION = "0.1.7"
15
15
  DESCRIPTION = "Scrapes online petition data from change.org"
16
16
 
17
17
  setup(