Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 12177

Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability. Use the python tag for all Python related questions. If you believe your question may be even more specific, you can include a version specific tag such as python-3.x.

7 votes
3 answers
4k views

Accessing files in a child directory in Python 2.7.x

I have written the below script for use in Python 2.7.x. …
thefragileomen's user avatar
4 votes
3 answers
468 views

Accessing Tor using Python 2.7.x

They are written to be ran in Python 2.7.x def tor_browser_initialise(): """ This function checks whether the Tor Browser is running. …
thefragileomen's user avatar
3 votes
3 answers
765 views

Simple hashing code with excessive conditional statements

Any thoughts on my code? It's a simple hashing code that runs from the command line. There just appears to be a lot of condition if / elif entries in both of the main functions (hashingmethod and has …
thefragileomen's user avatar
1 vote
2 answers
12k views

Replacing data in a .csv file

The code works well and does what I intend for it to do. In essence, it opens a file referenced as 'resource'. This is a .csv file. I then searches for the keys in the dictionary and for each key that …
thefragileomen's user avatar
1 vote
1 answer
443 views

JPEG metadata processor

I am looking to make the below code a bit more efficient / OOP based. As can be seen by the X, Y & Z variables, there is a bit of duplication here. Any suggestions on how to make this code more python …
thefragileomen's user avatar
1 vote
1 answer
371 views

URL and source page scraper

The code does seem a bit repetitive in places such as the parenturlscraper module and the childurlscraper module. Does anyone have any recommendations for improving my code and condensing it a little …
thefragileomen's user avatar