Skip to content

Commit

Permalink
wk7_update
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJanowicz committed Oct 6, 2022
1 parent fd15d38 commit b8631a3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion webscraping/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@


# get the text from each repo
soup.find_all('p',class_='col-9 color-fg-muted my-1 pr-4')
descriptions = soup.find_all('p',class_='col-9 color-fg-muted my-1 pr-4')

output_descriptions = []
for i in descriptions: #for x in y:
print(i.text)
data = i.text
output_descriptions.append(data)

len(output_descriptions)
output_descriptions[1]
output_descriptions[3]

# get the programming language from each repo
p_langauge = soup.find_all('span',attrs={'itemprop': 'programmingLanguage'})
Expand Down Expand Up @@ -41,6 +51,7 @@
# get the name of the repo and print it
repo_name = soup.find_all('h1',class_='h3 lh-condensed')
repo_names = []

for item in repo_name:
print(item.text)
name = item.text
Expand Down

0 comments on commit b8631a3

Please sign in to comment.