Skip to content

Commit 8ca6cd0

Browse files
xlsx to csv
1 parent 9bc3469 commit 8ca6cd0

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

ScrapeThisSite/Frames & iFrames.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66
try: os.mkdir('Scrapped')
77
except: pass
88

9-
writer = pd.ExcelWriter(
10-
'Scrapped/Frames & iFrames.xlsx',
11-
engine='xlsxwriter'
12-
)
13-
149
def fetch(turtle = '', tag='h3', attrs_class='family-name'):
1510
link = f'https://www.scrapethissite.com/pages/frames/?frame=i&family={turtle}'
1611

@@ -43,9 +38,9 @@ def fetch(turtle = '', tag='h3', attrs_class='family-name'):
4338
orient='index'
4439
)
4540

46-
pd.DataFrame(df).to_excel(writer,
47-
sheet_name = 'turtle',
41+
df.to_csv(
42+
'Scrapped/Frames & iFrames.csv',
4843
index = False,
49-
header=False
44+
header=False,
45+
encoding='utf-8'
5046
)
51-
writer.save()
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
https://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/Carettochelys_insculpta.jpg/200px-Carettochelys_insculpta.jpg,Carettochelyidae,"The Carettochelyidae family of turtles — more commonly known as ""Pig-nosed turtle"" — were first discovered in 1887 by Boulenger."
2+
https://upload.wikimedia.org/wikipedia/commons/thumb/7/71/GreenSeaTurtle-2.jpg/200px-GreenSeaTurtle-2.jpg,Cheloniidae,"The Cheloniidae family of turtles — more commonly known as ""Sea turtles"" — were first discovered in 1811 by Oppel."
3+
https://upload.wikimedia.org/wikipedia/commons/thumb/8/88/Alligator_snapping_turtle.jpg/200px-Alligator_snapping_turtle.jpg,Chelydridae,"The Chelydridae family of turtles — more commonly known as ""Snapping turtles"" — were first discovered in 1831 by Gray."
4+
https://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Dermatemydidae.JPG/200px-Dermatemydidae.JPG,Dermatemydidae,"The Dermatemydidae family of turtles — more commonly known as ""Central American river turtle"" — were first discovered in 1870 by Gray."
5+
https://upload.wikimedia.org/wikipedia/commons/thumb/9/9b/LeatherbackTurtle.jpg/200px-LeatherbackTurtle.jpg,Dermochelyidae,"The Dermochelyidae family of turtles — more commonly known as ""Leatherback sea turtle"" — were first discovered in 1843 by Fitzinger."
6+
https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/Tortoise1_cepolina.jpg/200px-Tortoise1_cepolina.jpg,Emydidae,"The Emydidae family of turtles — more commonly known as ""Pond or water turtles"" — were first discovered in 1815 by Rafinesque."
7+
https://upload.wikimedia.org/wikipedia/commons/thumb/f/f3/Cuora_amboinensis_kamaroma_j.jpg/200px-Cuora_amboinensis_kamaroma_j.jpg,Geoemydidae,"The Geoemydidae family of turtles — more commonly known as ""Asian river, leaf, roofed or Asian box turtles"" — were first discovered in 1868 by Theobald."
8+
https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Sternotherus_odoratus.jpg/200px-Sternotherus_odoratus.jpg,Kinosternidae,"The Kinosternidae family of turtles — more commonly known as ""Mud or musk turtles"" — were first discovered in 1857 by Agassiz."
9+
https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/Zolw_wielkoglowy.jpg/200px-Zolw_wielkoglowy.jpg,Platysternidae,"The Platysternidae family of turtles — more commonly known as ""Big-headed turtle"" — were first discovered in 1869 by Gray."
10+
https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Tortoise.aldabra.750pix.jpg/200px-Tortoise.aldabra.750pix.jpg,Testudinidae,"The Testudinidae family of turtles — more commonly known as ""Tortoises"" — were first discovered in 1788 by Batsch."
11+
https://upload.wikimedia.org/wikipedia/commons/thumb/3/39/Apalone_spinifera.jpg/200px-Apalone_spinifera.jpg,Trionychidae,"The Trionychidae family of turtles — more commonly known as ""Softshell turtles"" — were first discovered in 1826 by Fitzinger."
12+
https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Eastern_long_neck_tortoise_-_chelodina_longicollis.jpg/200px-Eastern_long_neck_tortoise_-_chelodina_longicollis.jpg,Chelidae,"The Chelidae family of turtles — more commonly known as ""Austro-American sideneck turtles"" — were first discovered in 1831 by Gray."
13+
https://upload.wikimedia.org/wikipedia/commons/thumb/8/86/Pelomedusa_subrufa.JPG/200px-Pelomedusa_subrufa.JPG,Pelomedusidae,"The Pelomedusidae family of turtles — more commonly known as ""Afro-American sideneck turtles"" — were first discovered in 1868 by Cope."
14+
https://upload.wikimedia.org/wikipedia/commons/thumb/5/5b/Erymnochelys_madagascariensis.jpg/200px-Erymnochelys_madagascariensis.jpg,Podocnemididae,"The Podocnemididae family of turtles — more commonly known as ""Madagascar big-headed, Big-headed Amazon River turtle and South American sideneck river turtles"" — were first discovered in 1869 by Gray."
-7.22 KB
Binary file not shown.

static/BackupWebScrape.zip

-5.64 KB
Binary file not shown.

0 commit comments

Comments
 (0)