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

Commit 506c0ff

Browse files
Cricbuzz - Latest Cricket News (Updated)
1 parent 04159b4 commit 506c0ff

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed
218 Bytes
Loading

Scripts/Web_Scrappers/cricbuzz_latest_cricket_news/main.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
s4=s.find('h2', attrs={'class' : re.compile('cb-nws-hdln cb-font-18 line-ht24')})
2828
heading.append(s4.text)
2929
l=len(heading)
30-
file = open("out.txt", "w")
31-
for i in range(l):
32-
file.write(typ[i]+"\n")
33-
file.write(heading[i]+"\n")
34-
file.write(intro[i]+"\n")
35-
file.write('Ref: '+links[i]+"\n")
36-
file.write('Posted: '+time[i]+"\n\n")
30+
with open("out.txt", "w") as file:
31+
for i in range(l):
32+
file.write(typ[i]+"\n")
33+
file.write(heading[i]+"\n")
34+
file.write(intro[i]+"\n")
35+
file.write('Ref: '+links[i]+"\n")
36+
file.write('Posted: '+time[i]+"\n\n")
3737
file.close()
38-
print("Your News is ready in 'out.txt'")
38+
print("Your News is ready in 'out.txt'")

Scripts/Web_Scrappers/cricbuzz_latest_cricket_news/out.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ NEWS • REST IN PEACE
22
Afghanistan opener Najeeb Tarakai passes away after road accident
33
The 29-year-old made his first-class debut in 2014 and went on to play 12 T20Is and one ODI for his country
44
Ref: https://www.cricbuzz.com/cricket-news/114425/afghanistan-opener-najeeb-tarakai-passes-away-after-road-accident
5-
Posted: 32m ago
5+
Posted: 1h ago
66

77
NEWS • INDIAN PREMIER LEAGUE 2020
88
Ashwin pleased with DC's bench-strength
@@ -14,47 +14,47 @@ MATCH FEATURES • INDIAN PREMIER LEAGUE 2020
1414
Many boxes ticked in Delhi Capitals' near-perfect game
1515
Pace, spin and game smarts, Iyer and Co. out-tactic RCB in all disciplines
1616
Ref: https://www.cricbuzz.com/cricket-news/114423/many-boxes-ticked-in-delhi-capitals-near-perfect-game-dc-v-rcb-ipl-2020
17-
Posted: 3h ago
17+
Posted: 4h ago
1818

1919
MATCH REPORTS • IPL 2020
2020
RCB humbled by Delhi's complete performance
2121
With four wins in five games, the Shreyas Iyer-led side have moved to the top of the points table
2222
Ref: https://www.cricbuzz.com/cricket-news/114422/ipl-2020-rcb-humbled-by-delhis-complete-performance
23-
Posted: 10h ago
23+
Posted: 11h ago
2424

2525
NEWS • CRICKET SOUTH AFRICA
2626
CSA report summary pins blame on Moroe, but others implicated
2727
The summary says, Moroe broke the Companies Act numerous times, brought CSA into disrepute and failed to act in its best interests
2828
Ref: https://www.cricbuzz.com/cricket-news/114421/csa-report-summary-pins-blame-on-moroe-but-others-implicated
29-
Posted: 14h ago
29+
Posted: 15h ago
3030

3131
MATCH PREVIEWS • INDIAN PREMIER LEAGUE 2020
3232
RR seek revival against on-song Mumbai
3333
Despite winning their first two games, RR find themselves in the bottom half of the table
3434
Ref: https://www.cricbuzz.com/cricket-news/114420/indian-premier-league-2020-rajasthan-royals-seek-revival-against-an-on-song-mumbai-indians
35-
Posted: 15h ago
35+
Posted: 16h ago
3636

3737
LIVE BLOG • IPL 2020
3838
Live Cricket Score - RCB vs DC, Match 19, IPL 2020
3939
Catch the live updates of Royal Challengers Bangalore vs Delhi Capitals, Match 19 of IPL 2020 from Dubai
4040
Ref: https://www.cricbuzz.com/cricket-news/114419/live-cricket-score-rcb-vs-dc-match-19-ipl-2020
41-
Posted: 15h ago
41+
Posted: 16h ago
4242

4343
NEWS • IPL 2020
4444
Bhuvneshwar Kumar out of IPL 2020
4545
The SRH pacer suffered an injury in his team's victory over CSK
4646
Ref: https://www.cricbuzz.com/cricket-news/114418/bhuvneshwar-kumar-ruled-out-ipl-2020-sunrisers-hyderabad-srh-csk-chennai-super-kings
47-
Posted: 16h ago
47+
Posted: 17h ago
4848

4949
NEWS • AUSW V NZW
5050
'Frustrated' Lanning glad to spend time in the middle
5151
After scores of 20s in the T20Is, the Aussie captain got the chance to build her innings in the 50-over format and scored a century
5252
Ref: https://www.cricbuzz.com/cricket-news/114417/frustrated-lanning-glad-to-spend-time-in-the-middle
53-
Posted: 17h ago
53+
Posted: 18h ago
5454

5555
NEWS • IPL 2020
5656
Amit Mishra ruled out of remainder of IPL 2020
5757
The senior spinner sustained an injury to his bowling hand during DC's win over KKR
5858
Ref: https://www.cricbuzz.com/cricket-news/114416/amit-mishra-ruled-out-of-ipl-2020-delhi-capitals
59-
Posted: 17h ago
59+
Posted: 18h ago
6060

0 commit comments

Comments
 (0)