Skip to content

Commit ea67b3c

Browse files
committed
Small fixes
1 parent 74aadb8 commit ea67b3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python_packages/scrapeGithubPython.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: Chris Heiser
55
### Overview
66
In this case a user has written a script to link a data resource, and the Python package written for that resource, to resources in GitHub. The intention here is to survey ways in which the data resource is being used in analytic workflows.
77

8-
We are looking for the statement "import <package_name>" in Python code found on Github.
8+
We are looking for the statement ```import package_name``` in Python code found on Github.
99

1010

1111

@@ -22,7 +22,7 @@ with open("gh.token", "r") as f:
2222

2323

2424

25-
The "Py_packages_toScrape.csv" is a single column of python packages names. There isn't a Python equivalent to ROpenSci, so this list was manually created from popular scientific packages.
25+
The ```Py_packages_toScrape.csv``` is a single column of python packages names. There isn't a Python equivalent to ROpenSci's package list, so this list was manually created from popular scientific packages.
2626

2727

2828
```python
@@ -42,7 +42,7 @@ def main(ghtoken):
4242

4343

4444

45-
We put together the API request and send it out with the authorized token. We use information from the response to write a CSV file with the relevant results. Each line in the "scrapeGitResults.csv" file represents a single connection between two packages, and the URL to the file where the "import <package_name>" was found.
45+
We put together the API request and send it out with the authorized token. We use information from the response to write a CSV file with the relevant results. Each line in the ```scrapeGitResults.csv``` file represents a single connection between two packages, and the URL to the file where the ```import package_name``` was found.
4646

4747
```python
4848
def send_query(packList, ghtoken):

0 commit comments

Comments
 (0)