Find Jobs
Hire Freelancers

Python 2.7, Help with lists [AUD ONLY!]

$10-30 AUD

ที่ทำเสร็จแล้ว
โพสต์ มากกว่า 5 ปีที่ผ่านมา

$10-30 AUD

ชำระเงินเมื่อส่งงาน
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!
รหัสโปรเจกต์: 17988847

เกี่ยวกับโปรเจกต์

7 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 6 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
หมอบหมายให้:
รูปอวาตาร์ของผู้ใช้
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 วัน
4.8 (15 รีวิว)
3.9
3.9
7 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย $24 AUD สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
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 I am looking forward to keeping touch with you Thanks
$25 AUD ใน 1 วัน
4.9 (324 รีวิว)
8.4
8.4
รูปอวาตาร์ของผู้ใช้
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.0 (37 รีวิว)
5.5
5.5
รูปอวาตาร์ของผู้ใช้
Hi, I'm not interested in long introductions. I'll do this in 1 hour or less.............................
$30 AUD ใน 1 วัน
5.0 (1 รีวิว)
2.8
2.8
รูปอวาตาร์ของผู้ใช้
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(num + offset) and then concatenate the digits to form a string. Example 102543. The numbers in ascii start from decimal 48 to 57 and the uppercase letters start from decimal 65 ot 90. In order to shift 0 to A, 1 to B etc the offset would be 17, so you'd add 17 before you pass it to ord. So here's the algorithm: while (notdone) { #extract last digit word += ord((ID % 10) + 17) #convert to character and concatenate continue until all digits are extracted and concatenated } Message me if you need assistance
$20 AUD ใน 1 วัน
5.0 (1 รีวิว)
1.5
1.5
รูปอวาตาร์ของผู้ใช้
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 วัน
5.0 (1 รีวิว)
1.2
1.2
รูปอวาตาร์ของผู้ใช้
Hello sir i am very interested ....................................................................................................
$20 AUD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0

เกี่ยวกับลูกค้า

ปักธงของ AUSTRALIA
canberra, Australia
5.0
1
ยืนยันวิธีการชำระเงินแล้ว
เป็นสมาชิกตั้งแต่ มี.ค. 4, 2017

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง