by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    stevenmcastano
    @stevenmcastano
    I did see it and it worked great! Thanks!!
    Serge Wagener
    @Foxi352
    Hi, i want to use this lib only to fetch calendar to display data in home automation visualisation. With 2-factor auth it works. But obviously i can't each time enter validation code on HA visualisation, and i don't want to disable 2-factor. Normally i would use application specific password for this kind of usage, but could it be that this lib does not work with application specific password and that you have to use the main icloud password ?
    Zander
    @zanderxyz
    @Foxi352 I have come across the same problem - it seems that app specific passwords don't work. Have you come across a solution?
    Serge Wagener
    @Foxi352
    No. Due to lack of support / communication in this channel i moved to a php based solution which worked immediatly like a charm. I abondoned a Python based solution.
    Adam Coddington
    @coddingtonbear
    Sorry, Foxi352 -- none of us work for Apple, so there is no official support. Everything written is a combination of careful experimentation and reverse-engineering.
    Serge Wagener
    @Foxi352
    No worries. I found a solution that works for me, so i'm happy :-) I needed a calendar read-only solution that works with application specific passwords. I found exactly what i needed in php. Your solution is a lot more powerful of course, but was not the right solution in my case ...
    Zander
    @zanderxyz
    @Foxi352 Thanks for the quick reply. Do you have a link to the PHP? If it works then there must be a way to get Python working too.
    Serge Wagener
    @Foxi352
    @zanderxyz I use it in this project:https://github.com/Martin-Gleiss/smartvisu/blob/master/lib/calendar/service/iCloud.php but as i said it is read-only and just used to get the calendar.
    Zander
    @zanderxyz
    Thanks, will take a look
    Bart274
    @Bart274
    @Foxi352 doesn't app specific passwords work in HA?
    Serge Wagener
    @Foxi352
    @Bart274 What do you mean by HA ? Pyicloud did not accept them, it only worked with main password using 2-factor for me...
    Bart274
    @Bart274
    @Foxi352 thought you meant HomeAssistant when you mentioned HA
    Serge Wagener
    @Foxi352
    @Bart274 HomeAutomation :-) i use smarthome.py
    Bart274
    @Bart274
    I see 😊 I use homeassistant myself 😊
    Adam Coddington
    @coddingtonbear
    I use homeassistant, too, actually
    Bart274
    @Bart274
    @coddingtonbear do you use the icloud tracker?
    Adam Coddington
    @coddingtonbear
    I'm afraid not :-/
    I did notice that they do use pyicloud for that, though, which was cool to see!
    Bart274
    @Bart274
    Man, the default tracker sucks, I made a custom version with dynamic intervals etc, works really well 😊
    I'll add you to my chat room about it tomorrow 😊
    Adam Coddington
    @coddingtonbear
    neat; you should post a PR for updating their default tracker
    the number of modules I see in there makes me bet that they're pretty great about handling PRs
    Bart274
    @Bart274
    Yeah I really need to get it done 😊
    Lee
    @luosiding123
    Hi,do you know how to get backup files in iCloud?Some softwares can get all backup files from iCloud,i think there must have a url @coddingtonbear
    Adam Coddington
    @coddingtonbear
    I'm afraid I have no idea
    Lee
    @luosiding123
    @coddingtonbear oh,thanks :-/ :-/
    Francisco Aguilera
    @Falven
    Hello, does pyicloud still perform correct 2fa? I cannot get the service to send me a verification to save my life...
    max1404
    @max1404
    Hi, when i use the command "icloud --list" nothing comes back. Only "CTRL+C" brings the prompt back. Solution? (Debian 8.6)
    with "icloud --username=username@domain.com" the same. :-1:
    Elvis Pfützenreuter
    @elvis-epx
    Question: is there a way to dowload edited photos? I can get the originals, but not the edited versions
    itadder
    @itadder
    hello
    I am getting this exception
    HTTPSConnectionPool(host='p32-photosws.icloud.com', port=443): Max retries exceeded with url:
    does anyone know how long it is
    any idea
    itadder
    @itadder
    anyone around
    itadder
    @itadder
    Hi
    itadder
    @itadder
    hey
    itadder
    @itadder
    heya
    anyone around
    鹏博
    @Mocha-L
    @itadder I have the same exception , Do u know why?
    Luke Quinane
    @tmyroadctfig
    does anyone know why the post to the changeset url is needed here? https://github.com/picklepete/pyicloud/blob/master/pyicloud/services/contacts.py#L41
    Adam Coddington
    @coddingtonbear
    I'm not directly aware, no, but it may help you to know that the PR adding that feature was added by @joachimneu. I don't have contact information for him, but you might be able to google his name to find a way of raeching out, tmyroadctfig.
    pyshamsher
    @pyshamsher
    photo = next(iter(api.photos.albums['Screenshots']), None)
    download = photo.download()
    with open(photo.filename, 'wb') as opened_file:
    opened_file.write(download.raw.read())
    Hi When I try to download the photos using the above code nothing gets downloaded, what would be missing ?
    Tsilavina Razafinirina
    @letsila
    Hi guys, I guess there is still no workaround about 2fa right now. So I am wondering if anyone have heard of carddav server and how it can be used to pull iOs contacts?
    Prosammer
    @Prosammer

    Hello! I’ve had to modify the 2SA authentication example in the readme because I’m creating an Alfred 3 workflow, so the first script looks like this:

    ‘’'

    import sys, os, time
    from workflow import Workflow3, ICON_WARNING, Variables

    log = None
    device = sys.argv[0]

    def main(wf):
    from pyicloud import PyiCloudService
    login_info = None
    for line in open("apidata.txt", "r").readlines():
    login_info = line.split()

    api = PyiCloudService(login_info[0], login_info[1])
    api.send_verification_code(device)

    if name == "main":
    wf = Workflow3()
    log = wf.logger
    sys.exit(wf.run(main))

    ‘''

    So that first script seems to work fine and send the verification code to whichever device the user has selected.
    The problem is, in the second script, once the user has input their verification code, api.validate_verification_code(device, code) sends ANOTHER iCloud popup!

    ‘’'

    import sys, os
    from workflow import Workflow3, ICON_WEB, ICON_WARNING

    auth_code = sys.argv[0]

    def main(wf):
    from pyicloud import PyiCloudService

    login_info = None
    for line in open("apidata.txt", "r").readlines():
        login_info = line.split()
    
    api = PyiCloudService(login_info[0], login_info[1])
    if not api.validate_verification_code(auth_code):
        wf.add_item(title="Failed to verify!",
        subtitle='Please try again', valid="No", icon=ICON_WARNING)
        wf.send_feedback()
    else:
        wf.add_item(title="Verified!",
        subtitle='Use keyword "overhere" to find your lost device', valid="No")
        wf.send_feedback()

    if name == 'main':
    wf = Workflow3()
    log = wf.logger
    wf.run(main)

    ‘’'

    Alfred-workflow uses python 2.7, so I’m not sure if that’s the issue, or is it something to do with calling pyicloud from a different python program? I’m new to Python so sorry if this is a stupid question!

    arghhh sorry about the formatting! I could put it on pastebin if that helps
    subin-jm
    @subin-jm
    Hi, I am looking to access user's iCloud storage using their ID and password, from the document only listing and download option is shown. Can we do other functionalities like upload, delete, create a folder etc using this? and also will the 2sa be asked again once we do that once for a user?