Find Jobs
Hire Freelancers

[Python] I need someone to help count items from response [json]

$10-30 AUD

완료함
게시됨 약 5년 전

$10-30 AUD

제출할때 지불됩니다
Here's what I need help with: - I have a program, that looks inside of a response, if it finds an ID matching my list, it will print and save the name I have given the ID. It works well actually, where I need help with is if an ID is found twice, it will only print/save it once, when I'd like it saved twice. Ideally I'd like it to save it in the following format: Id1 x1 <found1 Id2 x1 <found1 Id 3 x2,3,4,5 ect <found2,3,4,5, ect Code being used: IDs = {'NameHere':'IdHere', 'NameHere':'IdHere', 'NameHere':'IdHere',} M = [k for (k, c) in sorted([login to view URL]()) if c in [login to view URL]] print M ^Printing that when used with my requests, will only print items from my list if any are found, I'd like a way implemented to add quantities, saving them with x1, x2, x3 ect. Ideal output: Bobx1 Gregx3 Billyx2 Script to test with: realresponse = { "cards": [{ "id": 1, "card_id": 2, "exp": 0, "skill_lv": 1, "released_rate": 0.0, "awakenings": [], "unlocked_square_statuses": [], "created_at": 1546646705, "potential_parameters": [] }] } IDs = {'Bob': '123', 'Billy': '456', 'Greg': '789'} sample = {'123', '789', '123'} M = [k for (k, c) in sorted([login to view URL]()) if c in sample] print M realresponse is not used, its there to show what a real response I get looks like. I can provide clearer information privately.
프로젝트 ID: 18466507

프로젝트 정보

3 제안서
원격근무 프로젝트
활동 중 5년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
프로젝트를 수여된 사용자:
사용자 아바타
Worked with python last 5 years, familiar with API responses and handling - last 3 projects required it
$25 AUD 1일에
5.0 (1 건의 리뷰)
3.8
3.8
3 이 프로젝트에 프리랜서들의 평균 입찰은 $20 AUD입니다.
사용자 아바타
i am gopinath i have 3+ year experience in software development unity3d,android,ios...............................................................................................
$15 AUD 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
Hello, I've read your offer and it seems like a simple task, so it can be done briefly. I have around 3 years of python experience. I have integrated APIs using json format many times, so what you're asking for is not a problem. If I understand correctly, multiple instances of the same ID are only being counted as one, right?
$20 AUD 1일에
0.0 (0 건의 리뷰)
0.0
0.0

고객에 대한 정보

국기 (AUSTRALIA)
canberra, Australia
5.0
2
1월 3, 2019부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.