Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Commit 4d37692

Browse files
authored
Merge pull request #628 from Rajdeep-Ray/master
Improved Rocket Launch Schedule web-scraper
2 parents 2d8f968 + 14fcb0a commit 4d37692

File tree

1 file changed

+2
-1
lines changed
  • Scripts/Web_Scrappers/Rocket-Schedule

1 file changed

+2
-1
lines changed

Scripts/Web_Scrappers/Rocket-Schedule/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
r = requests.get(URL)
1818

1919
soup = BeautifulSoup(r.content, 'html.parser')
20-
f = soup.find_all("h4", {"itemprop": "name"})
20+
soup.find('div', id="upcoming_launches_header").decompose()
21+
f = soup.find_all("h4")
2122
f1 = soup.find_all("div", {"class": "launch_date rlt_date"})
2223
f2 = soup.find_all("div", {"class": "rlt-provider"})
2324
f3 = soup.find_all("div", {"class": "rlt-location"})

0 commit comments

Comments
 (0)