Виконано

Python 2.7, Help with lists [AUD ONLY!]

So I have a small script, what it does is makes a requests, reads the pages data and will create/append to a text document with data if certain text is found.

What I'd like, instead of it saving the .txt files as the IDs from the list, instead allow me to give each ID it's own name so I can sort through them faster. Below will be my current script for this:

IDs= ['1012880', '1012140', '1013750', '1011700', '1012910', '1010150', '1011620', '1010050', '1007830', '1011120', '1014950', '1010420', '1014920']

url = 'url here'

r = [login to view URL](url, headers=headers)

Sa = [c for c in checklist if c in [login to view URL]]

f = open([login to view URL]('dir', str(Sa) + '.txt'), 'a')

[login to view URL](str(d) + '\n')

[login to view URL](str(d) + '\n')

[login to view URL](str(d) + '\n')

[login to view URL]()

print Sa

Where it opens the file and saves to it here "f = open([login to view URL]('dir', str(Sa) + '.txt'), 'a')" where it says "str(Sa)" that saves the file as a name, depending on what IDs it finds within the page its self.

I'd like to be able to save the files as custom names instead of the IDs.

Any help would be appreciated!

Навички: Python, Архітектура ПЗ

Деталі: list python, python list insert, pythonhome, python list remove, python 3 dictionary, python list pop, python list append, python dict, copy a logo $10 aud only, copy a logo 10 aud only, design a logo for a web/app it needs to come in version with name and with logo only so i can use it in our web page logo for th, design a logo for a webapp it needs to come in version with name and with logo only so i can use it in our web page logo for the, need to hire a python 2 programmer immediately for individual, do i need python 2 2 1 on my computer, freelancer or part time sharepoint developer 2 7 yrs jobs, moodle 2.7, squarespace 7 help, divi 2.7 theme wordpress, download xalan-2.7.0.jar, empregos freelance para maringa dia 2 7 20016

Про роботодавця:
( 0 відгуки(-ів) ) Australia

ID Проекту: #17988847

Доручено:

sachinraghav

Hello There, I have rich experience in working with Python, lists. I would like to do your project. Message me for more details. We can discuss more over chat

$20 AUD за 1 день
(6 відгуків(-и))
3.1

8 фрілансерів(-и) у середньому готові виконати цю роботу за $24

Yknox

Hello~!! I am Gang Lee and I read your post. But I have something to ask you. Your idea is amazing and it will change the world! I am a magic talented developer in your skill. If you wanna be the success, hire me Більше

$25 AUD за 1 день
(300 відгуків(и))
8.3
sunny2309

Hello, I can help you with your script. Please feel free to contact me to complete it. I do have extensive experience in python. Regards, Sunny S

$30 AUD за 1 день
(5 відгуків(и))
3.6
fadilullahi296

Hi, I'm not interested in long introductions. I'll do this in 1 hour or less.............................

$30 AUD за 1 день
(1 відгук)
2.8
qunzhuang323

Hi I have read your project description very carefully so I am confidence to complete your project I have finished lots of such projects successfully. I am an experienced and skillful python developer. I have ful Більше

$30 AUD за 0 дні(-в)
(6 відгуків(и))
2.8
Snake4eva

Hello, since each ID is unique the easiest solution is to loop through the list extract the digits of the ID then convert them to their numeric characters by adding an offset and using the built in python function ord( Більше

$20 AUD за 1 день
(1 відгук)
1.5
Shahrukh6528

Hello sir i am very interested ....................................................................................................

$20 AUD за 1 день
(0 відгуків(и))
0.0
JoshuaSullivan92

Hello I am a Python developer of 5 years based in Brisbane Australia. I would like to help you with your script. If you would like to discus the project further please feel free to message me anytime. Thanks

$20 AUD за 1 день
(0 відгуків(и))
0.0