Categories
Uncategorized

From nCol to Pajek 1/2 – Python

This process will take nCol data and create the *Vertices and *Edges Pajek sections. Pulled all the nCol data from the database and saved as links.txt, which reads: I pulled all the user names from the database and saved in a temporary file, usrTemp.txt. Removed all duplicates with the terminal and saved the file as […]

Categories
Uncategorized

Very Simple Class – Python

that returns

Categories
Uncategorized

Create List of Thread ID Numbers – Python

Categories
Uncategorized

Merge all Text Files in Folder – Python

So much easier on the terminal

Categories
Uncategorized

Make Directory – Python

Categories
Uncategorized

What’s your name? – Python

Another useless bit of code If you answer “jose” or “Jose”, you get But if you enter anything else, you get this…

Categories
Uncategorized

Download Consecutive Pages – Python

Categories
Uncategorized

Obsolete New Page Search – Python

Obsolete stuff that will tell you if there is a “Next” page by looking for the string “next” in the HTML. A pretty useless loop… Finally, just a simple “If it’s there then we cool”

Categories
Uncategorized

Using re.sub( ) – Python

This is the original text And this is what you get after deleting everything except digits. More info on Python regular expressions.

Categories
Uncategorized

Downloading HTML source code – Python