changedotorgscraper 0.0.4__tar.gz → 0.0.6__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
2
  Name: ChangeDotOrgScraper
3
- Version: 0.0.4
3
+ Version: 0.0.6
4
4
  Summary: Scrapes online petition data from change.org
5
5
  Author: Charles Alba
6
6
  Author-email: alba@wustl.edu
@@ -19,11 +19,10 @@ Requires-Dist: requests
19
19
  Requires-Dist: bs4
20
20
  Requires-Dist: tqdm
21
21
  Requires-Dist: pandas
22
- Requires-Dist: ast
23
22
 
24
23
  Scrapes online petition data from [change.org](https://www.change.org/).
25
24
 
26
25
 
27
26
 
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
-
27
+ [![pypi package](https://img.shields.io/badge/pypi_package-v0.0.6-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)
28
+
30
29
 
31
30
 
32
31
  ## Quick Start
33
32
 
34
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/).
35
34
 
@@ -39,7 +38,7 @@ url='https://www.change.org/search?q=Supplemental%20Nutrition%20Assistance%20Pro
39
38
  SNAP_petitions_df=scrape_petitions(url)
40
39
 
41
40
  print(SNAP_petitions_df)
42
41
 
43
42
  ```
44
43
 
45
- 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.
46
-
44
+ 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.
45
+
47
46
 
48
47
 
49
48
 
50
49
 
51
50
 
52
51
 
@@ -50,13 +49,13 @@ To use `ChangeDotOrgScraper`, you are required to have the following packages in
50
49
  - `bs4`
51
50
 
52
51
  - `tqdm`
53
52
 
54
53
  - `pandas`
55
54
 
56
- - `ast`
57
-
55
+ - `ast` (Python standard library)
56
+
58
57
  - `re` (Python standard library)
59
58
 
60
59
  - `json` (Python standard library)
61
60
 
62
61
 
63
62
 
64
63
  If you do not have these packages installed in python, you can do the following:
65
64
 
66
65
  ```bash
67
66
 
68
- pip install requests bs4 tqdm pandas ast
69
-
67
+ pip install requests bs4 tqdm pandas
68
+
70
69
  ```
71
70
 
72
71
 
73
72
 
74
73
  ## Installation
75
74
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ChangeDotOrgScraper
3
- Version: 0.0.4
3
+ Version: 0.0.6
4
4
  Summary: Scrapes online petition data from change.org
5
5
  Author: Charles Alba
6
6
  Author-email: alba@wustl.edu
@@ -19,11 +19,10 @@ Requires-Dist: requests
19
19
  Requires-Dist: bs4
20
20
  Requires-Dist: tqdm
21
21
  Requires-Dist: pandas
22
- Requires-Dist: ast
23
22
 
24
23
  Scrapes online petition data from [change.org](https://www.change.org/).
25
24
 
26
25
 
27
26
 
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
-
27
+ [![pypi package](https://img.shields.io/badge/pypi_package-v0.0.6-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)
28
+
30
29
 
31
30
 
32
31
  ## Quick Start
33
32
 
34
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/).
35
34
 
@@ -39,7 +38,7 @@ url='https://www.change.org/search?q=Supplemental%20Nutrition%20Assistance%20Pro
39
38
  SNAP_petitions_df=scrape_petitions(url)
40
39
 
41
40
  print(SNAP_petitions_df)
42
41
 
43
42
  ```
44
43
 
45
- 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.
46
-
44
+ 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.
45
+
47
46
 
48
47
 
49
48
 
50
49
 
51
50
 
52
51
 
@@ -50,13 +49,13 @@ To use `ChangeDotOrgScraper`, you are required to have the following packages in
50
49
  - `bs4`
51
50
 
52
51
  - `tqdm`
53
52
 
54
53
  - `pandas`
55
54
 
56
- - `ast`
57
-
55
+ - `ast` (Python standard library)
56
+
58
57
  - `re` (Python standard library)
59
58
 
60
59
  - `json` (Python standard library)
61
60
 
62
61
 
63
62
 
64
63
  If you do not have these packages installed in python, you can do the following:
65
64
 
66
65
  ```bash
67
66
 
68
- pip install requests bs4 tqdm pandas ast
69
-
67
+ pip install requests bs4 tqdm pandas
68
+
70
69
  ```
71
70
 
72
71
 
73
72
 
74
73
  ## Installation
75
74
 
@@ -6,7 +6,8 @@ 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.4'
9
+
10
+ VERSION = '0.0.6'
10
11
  DESCRIPTION = 'Scrapes online petition data from change.org'
11
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.'
12
13
 
@@ -20,9 +21,9 @@ setup(
20
21
  long_description_content_type="text/markdown",
21
22
  long_description=long_description,
22
23
  packages=find_packages(),
23
- install_requires=['requests','bs4', 'tqdm', 'pandas','ast'],
24
+ install_requires=['requests', 'bs4', 'tqdm', 'pandas'],
24
25
  license='MIT',
25
- keywords=['change.org','petitions','web scraping'],
26
+ keywords=['change.org', 'petitions', 'web scraping'],
26
27
  classifiers=[
27
28
  "Development Status :: 1 - Planning",
28
29
  "Intended Audience :: Education",
@@ -32,4 +33,4 @@ setup(
32
33
  "Operating System :: MacOS :: MacOS X",
33
34
  "Operating System :: Microsoft :: Windows",
34
35
  ]
35
- )
36
+ )