Organized indentation

This commit is contained in:
wilsonfreitas
2022-03-30 06:11:03 -03:00
parent 49441d3d7f
commit 4b209b82c1
3 changed files with 71 additions and 67 deletions
+8 -6
View File
@@ -60,13 +60,15 @@ urls = [
'https://cran.r-project.org/web/packages/bizdays/index.html',
]
def get_data(url):
res = requests.get(url)
m = reu.search(res.text)
if m:
return dict(cran=url, github=m.group(0), repo=m.group(1))
else:
return dict(cran=url, github='', repo='')
res = requests.get(url)
m = reu.search(res.text)
if m:
return dict(cran=url, github=m.group(0), repo=m.group(1))
else:
return dict(cran=url, github='', repo='')
all_data = [get_data(url) for url in urls]
df = pd.DataFrame(all_data)