HTML Tables in Python!
Skills:
HTML & CSS60%
Key Takeaways
Generates HTML tables using Python programming language
Full Transcript
what is going on guys rud LEL here and it is 6 o'clock at night what is it what is it today it is November 30th 2011 and holy crap November is almost over in fact it practically is over wow it's been a good month I got to say like I've been doing a lot of stuff as you guys can tell there hasn't really been too many updates because I've been just been full of I've been Chuck full of all these crazy stuff that I have to do and uh next we're going to move into the holiday month the holiday season and 20 2011 is eventually going to come to an end wow man it feels like this year is just sort of like breezed by and I've been doing a lot of work with n show like I started this website this year and just like I've been trying to like showcase what I've been doing this year and looking back it's almost it's it's kind of cool just being able to look back and see everything that I've done over the over the last year and even then there's still a lot of stuff to come and I haven't actually posted everything that I've done and that makes me feel sort of crappy like it is incredibly embarrassing when I tell you guys I'm going to do something and then proceed to not do it I almost feel like I I feel bad and the thing is I do really want to put in the effort to get things done for you guys and I feel absolutely terrible because I'm like I'm telling the world yes I'm going to get this done I'm going to do this I'm going to upload uh Hamlet up on to up on the no show I'm going to write the post for it I'm going to make it so you can download all the programs cuz the download section is down right now I'm going to work on a PHP script that will modify the U they'll modify the code section of the page just like the jQuery slide down bar works for the navigation on the left hand side I'm going to bring you a new layout for no show so it's not as so it's not as uh dynamic in each browser because Internet Explorer sucks uh yeah it's just like I I feel almost a little bit scatterbrained like but boom that's all uh let's let's talk code let's talk about what what you're watching right now this video is what I was telling you about the last code commentary this is uh some python footage and I I wrote this script in my uh in my in my digital graphic design class like I was telling you I wrote this actually in school so there are a couple moments in WoW there are a couple moments in this video where you're actually going to see me go into Photoshop do a little image editing and then just show my teacher so if there's some like idle screen for a few seconds don't worry about it it's just me showing my teacher but um but yeah other than that this python code is uh this is something I'd like to post up on noell I really need to post almost everything I'm doing and writing these days but I need I need to get on that holy holy crap uh okay I'm losing my thought here I'm losing my thought no no no no no no python this code that you're watching right now I wrote this uh for trying to organize some uh Network shares like I had found all these Network shares with a Nur soft.net tool uh the net resource viewer net rest view or whatever whatever they call it and uh since the thing is with that when you're when you're scanning for like net shares it's kind of hard to do so because if you're in an infrastructure where there's tons of computers uh you don't know which of those computers is going to be on or off and the thing is like uh sorry I'm clearing my throat here you don't know if the computer is going to be on or off and obviously if the computer is off you're not going to get you're not going to find that netshare so the thing is you you would you would run the program at different times and you would get different information the thing is you'll eventually get the same information so you can't just throw it all into one big file you have to sort of sort you have to kind of sort through the file and see what net shares you've seen which ones you haven't and all that so that's what I wrote this python script for it was really it it felt kind of good it felt good to be actually playing with python because I haven't done that in so long and uh yeah that was all it was the way it works is that uh it it Imports the o module that that's good so I can use like uh I can use file manipulations and stuff I think yeah the open function is built into this that's built into python the open function is what lets you actually open a file and read through it but the OS is what lets you like test for a path directories and stuff so you because you see some work on my USB drive here so I want to make sure the path exists before I actually open all the files in there so yeah we uh we use the directory uh the OS module to test test if the past ex uh test if the path exists sorry about these uh the speech problems and then it's going to go into that path it's going to display all the contents of it and it's going to look for the ones that are actual HTML files that's why you I think I do a little bit of an if statement there I do like if if the file ends with HTML if it's an HTML file then uh go ahead and just open and save that create that into an array or something it Loops through every single one of them and then it opens them up and then when you've opened that file up you're going to Loop through that HTML file and uh it's going to be it's it's in a table I think it was it's in a it's in a table there each each netshare is in a table row so it grabs that part out and it adds it to an array of the things that it's found if it hasn't already found that line then then it'll add it to it if it has found the line it'll ignore it because we don't need to we don't need to like record the things we've we've already seen that's just stupid so yeah that's how the logic Works in this uh and I think I did I comment through it I might have I I don't remember too much of what I was writing in this this was kind of a little bit ago and that's the thing I do feel bad that some of the work that I'm sending you guys is a little bit delayed but uh all right all right enough dead air enough awkward silence let's move on to the next topic um this video I don't know how it's I don't know how well this video will come out because I'm actually trying the I'm trying to uh to like render I don't know if render is the correct word for it but I'm trying to export this video by using ophot which is a new video editor for Ubuntu and Linux and distributions like that I don't know if it's crossplatform or not I don't know too much about the I don't know too much about the program yet but it was it was like it was one of the big highlights on the auntu software Center so I'm like okay yeah totally I'll try this software and then like that's the fun of Linux is that you can try different things you can try new things without having to have to like uh use a crazy machine and stuff but it it feels good so I'm I'm playing with this new program hopefully it'll it will take less time to render and everything like Kaden live did it won't be as slow and I don't know yeah yeah but I don't I don't know where I was going with the last line forgive that don't even don't even mention it just forget I said that pardon my cough guys but yeah that's about it um there's python code there is uh this new this new open shot video open shot video editor and right now that's all uh the last last night I actually did have some free time because we had a long weekend for uh Thanksgiving and all that uh at the last day of my my break I started pumping out some Linux distributions I sorry guys I started wow that's embarrassing holy crap I uh I tried to make some live CDs for random Linux distributions so uh Linux Mint 12 code named Lisa just came out very recently and that's wicked cool uh I'm not a big like I'd never played with any other Linux distribution other than Ubuntu so being able to do this was tons of fun all I did was I would download the iso I would try it in a virtual machine and then I would just create a live CD whether I liked it or not because I want to have my own little collection of Linux distributions and Linux live CDs so I've got a Linux Mint 12 code named Lisa uh FreeBSD 8.2 I've never ever played anything like played with FreeBSD whatsoever so I feel like that's going to be wicked cool uh open SS to 12.1 running gnome open CA Oh holy crap open Susa I haven't played with that one too much either I just booted into it and I thought it looked pretty and then proceeded to go to the next distribution because I felt like I was kind of short on time so I was just I was trying to get the iso burn it to a disc and then move on to the next one but yeah I've got uh Linux Min FreeBSD open Susa I tried Fedora 16 I tried Arch Linux uh I've got a bunto 11.10 ready to rock uh and why wow uh that's all I see yeah maybe I didn't do as much as I thought but but in all honesty it was tons of fun like could I could just try all these new Linux distributions see what I liked see what see what each distribution did see what ones didn't do and uh like looking at gnome 3 and unity and different desktop environments uh I feel like I should learn a little bit more about FreeBSD just cuz it's it's like it's a cool operating system I don't know if it's all command line interface but for my what uh what for my what I had ran from the installer there we go I think I finally got that sentence out what what from my head ran holy crap I'm not even going to try and attempt that when I ran the installer it was all command line it was all text based and I don't know if anything else is like that but uh oh goodness code commentary is almost over oh wow I actually talked more than I thought I would in this one uh thank you guys for watching I know I'm over my time limit now you're probably watching a black screen and blank screen whatever but whoa whoa whoa okay uh yeah it'd be cool if you could give me a like maybe a comment maybe a favorite maybe subscribe I don't know do what you do people have a great day
Original Description
If you would like to support me, please like, comment & subscribe, and check me out on Patreon: https://patreon.com/johnhammond010
E-mail: johnhammond010@gmail.com
PayPal: http://paypal.me/johnhammond010
GitHub: https://github.com/JohnHammond
Site: http://www.johnhammond.org
Twitter: https://twitter.com/_johnhammond
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from John Hammond · John Hammond · 5 of 60
1
2
3
4
▶
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Code Commentaries? PHP to JavaScript in Bash and PHP!
John Hammond
Tutorials? MySQL connection with PHP and Bash!
John Hammond
Variable Naming in Python! Happy Birthday, Linux! Nokia N900!
John Hammond
JavaScript Splits The URL!
John Hammond
HTML Tables in Python!
John Hammond
HTML, Net Shares, GML!
John Hammond
Python 08 Programming Style and Comments
John Hammond
Python 26 Object Oriented Programming
John Hammond
75 Python Tutorials, Out Now!
John Hammond
Batch 14 Mathematical Expressions
John Hammond
Batch 85 Array Append
John Hammond
Batch 86 Array Count
John Hammond
Batch 87 Array Index
John Hammond
Batch 88 Array Insert
John Hammond
Batch 89 Array Remove
John Hammond
Batch 90 Array Reverse
John Hammond
Python [colorama] 00 Installing on Linux
John Hammond
Python [colorama] 09 Cursor Position
John Hammond
Python [hashlib] 02 Algorithms
John Hammond
Python 00 Installing IDLE on Linux
John Hammond
Python [pygame] 11 Rectangular Collision Detection
John Hammond
Python [pygame] 12 Platforming Rectangular Collision Resolution
John Hammond
Python [XML-RPC] 01 Research
John Hammond
Python [pyenchant] 03 Personal Word Lists
John Hammond
FancyURLopener Authentication and User-Agent [urllib] 03
John Hammond
Python 04: PEP8 Coding
John Hammond
Python Challenge! 17 COOKIES
John Hammond
Google CTF 2016: Ernst Echidna
John Hammond
Google CTF 2016: Spotted Quoll
John Hammond
Google CTF 2016: Can you Repo It?
John Hammond
Google CTF 2016: No Big Deal
John Hammond
Google CTF 2016: In Recorded Conversation
John Hammond
Homemade CTF Challenge: 01 "Orchestra"
John Hammond
Homemade CTF Challenge: 02 "Bae's Base"
John Hammond
Homemade CTF Challenge: 03 "Web Hunt"
John Hammond
Homemade CTF Challenge: 04 "UPX"
John Hammond
Homemade CTF Challenge: 05 "The Assumption Song"
John Hammond
Homemade CTF Challenge: 06 "A Brisk Stroll"
John Hammond
Homemade CTF Challenge: 06 "I lost my password!"
John Hammond
web25 :: Mr. Robot : EKOPARTY CTF 2016
John Hammond
web50 : RFC 7230 :: EKOPARTY CTF 2016
John Hammond
misc50 : Hidden inside EKO :: EKOPARTY CTF 2016
John Hammond
Hack The Vote 2016 CTF: Sander's Fan Club [web100]
John Hammond
Hack The Vote 2016 CTF Warpspeed [forensics150]
John Hammond
Juniors CTF 2016 :: Black Suprematic Square
John Hammond
Juniors CTF 2016 :: Six Strange Tales
John Hammond
Juniors CTF 2016 :: Lost Code
John Hammond
Juniors CTF 2016 :: Here Goes!
John Hammond
Juniors CTF 2016 :: Southern Cross
John Hammond
Juniors CTF 2016 :: Clone Attack
John Hammond
Juniors CTF 2016 :: Dirty Repo
John Hammond
Juniors CTF 2016 :: Hackers Blog
John Hammond
Juniors CTF 2016 :: Voting!!!
John Hammond
Juniors CTF 2016 :: The Good, The Bad and The Junkman
John Hammond
Juniors CTF 2016 :: Stop Thief!
John Hammond
Juniors CTF 2016 :: ROFL
John Hammond
Juniors CTF 2016 :: Restriced Area
John Hammond
Juniors CTF 2016 :: Oh SSH!
John Hammond
HackCon CTF 2017 TRIVIA and BONUS Challenges
John Hammond
HackCon CTF 2017 "Bacche" Challenges
John Hammond
More on: HTML & CSS
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
Had my Frontend Developer interview with Capgemini (Application Developer) today, and I wanted to…
Medium · JavaScript
10 Frontend Developer Tools to Boost Productivity in 2026
Medium · Programming
10 Frontend Developer Tools to Boost Productivity in 2026
Medium · JavaScript
The US Frontend Engineer Market in 2026: A Data-Driven Reality Check (and the Bias That Stops Us Seeing It)
Dev.to AI
🎓
Tutor Explanation
DeepCamp AI