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.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ChangeDotOrgScraper
3
- Version: 0.0.2
4
- Summary: Scrapes petitions and corresponding information from change.org
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 petitions from [change.org](https://www.change.org/).
25
-
24
+ Scrapes online petition data from [change.org](https://www.change.org/).
25
+
26
26
 
27
27
 
28
- [![pypi package](https://img.shields.io/badge/pypi_package-v0.0.2-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)
29
-
28
+ [![pypi package](https://img.shields.io/badge/pypi_package-v0.0.4-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)
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 petitions right from [change.org](https://www.change.org/).
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 related to SNAP as well as corresponding details (eg description, date created, target audience signature count, location created, victory status, etc).
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 petitions from change.org. PyPi.
79
-
76
+ C Alba (2024) `ChangeDotOrgScraper`: A python package to scrape petition data from change.org. PyPi.
77
+
80
78
 
81
79
 
82
- # Questions?
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.2
4
- Summary: Scrapes petitions and corresponding information from change.org
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 petitions from [change.org](https://www.change.org/).
25
-
24
+ Scrapes online petition data from [change.org](https://www.change.org/).
25
+
26
26
 
27
27
 
28
- [![pypi package](https://img.shields.io/badge/pypi_package-v0.0.2-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)
29
-
28
+ [![pypi package](https://img.shields.io/badge/pypi_package-v0.0.4-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)
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 petitions right from [change.org](https://www.change.org/).
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 related to SNAP as well as corresponding details (eg description, date created, target audience signature count, location created, victory status, etc).
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 petitions from change.org. PyPi.
79
-
76
+ C Alba (2024) `ChangeDotOrgScraper`: A python package to scrape petition data from change.org. PyPi.
77
+
80
78
 
81
79
 
82
- # Questions?
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.2'
10
- DESCRIPTION = 'Scrapes petitions and corresponding information from change.org'
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.'
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(