Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~13.1K People Reached
Favorite Tags
Member Avatar for abaddon2031

I have just figured out how to search for the element that im looking for in a xml file but now when I run it the code loops through i know 3 times maybe even more. I want to know what im missing that would cause it to loop like …

Member Avatar for chriswelborn
0
256
Member Avatar for abaddon2031

SO i have a python code that collects xml data in a file then seraches the file for the scancode and once it finds that the scan code is there it starts scanning for the order number this is where im running into trouble at. What i want it to …

Member Avatar for sneekula
0
471
Member Avatar for abaddon2031

I am workign with a xml file that contains the order information for a company. What i am tryign to do is see if the xml file have a scan code in it and if it does then to pull the order number so that it can be passed to …

Member Avatar for abaddon2031
0
295
Member Avatar for abaddon2031

I am trying to do a search for sub-folders in a directory that conaint numbers. The format could be a date range for example: 1-1, 01-1, 1-01, 01-01. The first number will only go up to 12 and the second one will go as high as 31 and im trying …

Member Avatar for Gribouillis
0
446
Member Avatar for abaddon2031

I have a python code that reads a specific folder for specific files. Once it finds a file that matches the re.split peramiters that it is given it then writes the data to a csv file. The issue is that for every file that it loops through and writes it …

Member Avatar for abaddon2031
0
2K
Member Avatar for abaddon2031

Im working on a code that loops through a folder break up the file names in it into specific parts and then reads off sertain parts of the broken name and writes it to a csv sile. The files ser formated as follows test_PAQT_B2H.csv, test_PAQT_B4.csv, and test_PINI_B1H.csv. when it jsut …

Member Avatar for abaddon2031
0
355
Member Avatar for abaddon2031

Im working on a project where i have to get the number of printers that are allocated to a certain job and need to split the file name up so that i can read the type and the number of printers and if its a half bed or not. The …

Member Avatar for snippsat
0
264
Member Avatar for abaddon2031

I am working on a code that searches a folder gets a specific part of the file name and adds 1 to a file counter. There are some files in tehre that have a special character that indicates that is is only half. I ahve got it to count the …

Member Avatar for flebber
0
186
Member Avatar for abaddon2031

So i have a python code that searches for a folder in a directory and gets the size of the folder. I am wanting to search inside the folder and get the file size of what is in the folder. The items in the folder will have different extentions so …

Member Avatar for ~s.o.s~
0
395
Member Avatar for abaddon2031

I am trying to learn element tree so that i cna work with xml files a little more indepth. I have researched it and everythign i have read says that my version of python should have ElementTree already installed on it. But every time i try to run my sample …

Member Avatar for snippsat
0
2K
Member Avatar for abaddon2031

I have a small program that searches through two folders and gets the size of the files in them. As of right now for every file that is over the specified size limit sends a email. What i am wanting to do it have it compile a lsit of the …

Member Avatar for TrustyTony
0
279
Member Avatar for abaddon2031

I have a block of code that i am wanting to turn into a function and i am very ocnfused on how to do it properly. If anyone could give me a lead on how to do this it would be a great help. The for statement is where i …

Member Avatar for abaddon2031
0
222
Member Avatar for abaddon2031

Im working on a small block of code that compares a argumented value to a file seached value. Every time i run the code it and give it the argumented value either lower or higher than i know the searched value is it gives me the opisite answer of what …

Member Avatar for abaddon2031
0
283
Member Avatar for abaddon2031

I have two python script the first once contains my def callers and my command line arguments. The second one contains my defs that i want to use the command line arguments in. I was wondering if there was a way to call the command line arguments into the second …

Member Avatar for Gribouillis
0
403
Member Avatar for abaddon2031

I am working on s code that i want to add command line arguments to. I have read the docs.python page on this subject 3 or 4 times and it still has me conffused. I want to be able to set my base directory, change a send and recive email …

Member Avatar for abaddon2031
0
670
Member Avatar for abaddon2031

I have a python script that reads a csv file and converts it to two new files so that my database can add new emails or update existing ones. What im trying to do now is after it has converted them for it to send me a email with how …

Member Avatar for abaddon2031
0
387
Member Avatar for abaddon2031

I have a python code that reads a file into a stringio. This works great but now i need to do is http post from the stringio and i can not figure it out. Any help would be greatly appriciated cause this is really conffusing and i dont know what …

0
251
Member Avatar for abaddon2031

I have a block of code that i reads a file and then converts it to a add and update file and im looking to change it to where insead of it having a hard copy created every time for it to use stringio if it is possible. Sence im …

0
135
Member Avatar for abaddon2031

I have a code that i have made that appends a file then uploades the output of the appending to my websites database. In the code i have 2 def statements that i would like to put into modules. I was wondering if omeone could tell me a simple way …

Member Avatar for TrustyTony
0
205
Member Avatar for abaddon2031

So i am trying to take some code that i had working before and turn it into a function but every time i run my code it kicks it to line 9 in my code which is a continue statement and says the its not properly in the loop. I …

Member Avatar for abaddon2031
0
237
Member Avatar for abaddon2031

I am working on a python code that is supose to search a directory and see if a file in the directory has a _add_ or a _update_ and to change a few fields in my code that call the add and updata and change the directory name to match …

Member Avatar for abaddon2031
0
220
Member Avatar for abaddon2031

Ok so I have been searching for several days on how to write a simple python script that will HTTP post to my server. I am jsut looking for some tips on how to write this properly cause as of right now im having to upload my add and update …

Member Avatar for abaddon2031
0
393
Member Avatar for abaddon2031

I have a python script that connects to my database and updates it with a file that i specify. But i keep getting a syntax error on line 5 and for the life of me i can not figure out what it is. If someone could pointit out and how …

Member Avatar for abaddon2031
0
449
Member Avatar for abaddon2031

Ok i have a daily csv file that i am trying to get python to post to my database every day. I have used curl befor to post it but i want to set python up so that it post it for me is there a way to do this …

Member Avatar for abaddon2031
0
301
Member Avatar for abaddon2031

I am new to cURL and im trying to get it to add new contacts to my database. i have all my information right but when it reads my csv file it tells me no email column was found in the file you are uploading> I know for a fact …

Member Avatar for abaddon2031
0
171
Member Avatar for abaddon2031

I have a very large csv file that had different values for certian fields and im wanting to split it up so that each of the different values gets put into its own csv file for example all of the fields whos value is 1110 would get read and written …

Member Avatar for rrashkin
0
224
Member Avatar for abaddon2031

Ok so im working on a script that reads a large file then splits it up into seperate files using the field in it called PC Number. What im wanting to do is check if the file already exist if it does then it just appends the new data but …

Member Avatar for abaddon2031
0
422
Member Avatar for abaddon2031

SO im working on a python code that reads a csv file with 1600 entries roughly and i am splitting them up on the collum value of pc numbers. I keep getting a error that states " Traceback (most recent call last): File "C:\Users\HatterX\Desktop\test\test25", line 50, in <module> data.sort(key=lambda x: …

Member Avatar for abaddon2031
0
466
Member Avatar for abaddon2031

Ok so i didnt know where to post this but i am getting two errors while useing cURL. The first says cURL: (26) coudn't open file "test.csv". The second one keeps saying please upload a file. I have been trying to fix this for over a hour now and can …

0
146
Member Avatar for abaddon2031

I have a python code that reads several csv files and writes teh data to a single file but every time it loops back around to the next file it prints the headers again. Is there a way to stop this I can post my code if it is nessisary.

Member Avatar for abaddon2031
0
280