Skip to content

Commit d4a3ba7

Browse files
committed
Reorganizing
1 parent ea67b3c commit d4a3ba7

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

python_packages/crossResourcePyScript.py crossResourcePyScript.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import requests
22
import json
33
import csv
4+
import os
45
import time
56

67
# Option 1: Paste your github token to make Github API calls
78
ghtoken = ""
89
# Option 2: If you have your github token stored in a file, read it in from the file.
9-
with open("gh.token", "r") as f:
10+
with open(os.path.join("data", "import", "gh.token"), "r") as f:
1011
reader = f.readlines()
1112
ghtoken = reader[0]
1213

@@ -16,7 +17,7 @@ def main(ghtoken):
1617
1718
"""
1819
# Read packages list from CSV file
19-
packList = read_pkg_csv("Py_packages_toScrape.csv")
20+
packList = read_pkg_csv(os.path.join("data", "import", "packagesToScrape.csv"))
2021
# Query Github with the package list
2122
results = send_query(packList, ghtoken)
2223
# Write out the results to a csv file
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)