
    cfu                     4    d dl Z d dlZd dlmZ ddlmZ d ZdS )    N)Bar   )corec                    t          j        | j                  \  }}|dz   |z   dz   }t          j        |d| j                  }t          j        |           }| j        st          d           	 |                                }n# t          $ r}dt          |          v r8t          j
        |            t          |            t          j        d           nHdt          |          v rt          d	t          j        
           nt          |t          j        
           t          j        d           Y d}~nd}~ww xY wi }g }	dD ]{}
|
|vr| j        st          d|
z              ||
         }| j        s!t          dt          |          |
fz             |D ](}|d         |d         }|d         |v rd||d         <   )|| j        st          dt          |          z             | j        st          d           |d         D ]7}|d         -|d         %|d         |vr|	                    |d                    8| j        st          dt          |	          z             t          |	          dk    r,| j        s%t          dt          |	          dz  dz  z             t          |	          dk    rd|vrg }n|d         }| j        st#          dt          |	                    }|	D ]}	 |                    |          }|                    |           nU# t          $ rH}dt          |          v sdt          |          v rnt          |t          j        
           Y d}~nd}~ww xY w| j        s|                                 | j        s|                                 ||d<   t          j        ||| j                   dS dS ) z-
    Archive the statuses you replied to
    z.user.z.jsonT)requiredquietzGet user infozaccess token was revokedr   zName or service not knownz8Error: the instance name is either misspelled or offline)filer   N)statuses
favourites	bookmarksmentionsreplieszNo %s in this archive...zIndexing %d %s...reblogidzIndexed %d statuses...zCounting missing replies...r
   in_reply_to_idzMissing %d originals...i,  z[Given the typical rate limit of 300 requests per 5 minutes, this will take about %d minutes   r   Fetching)maxz	not foundz	Not Found)r   )r   parseuserloadr   loginprintaccount_verify_credentials	Exceptionstrdeauthorizearchivesysexitstderrlenappendr   statusnextfinishsave)argsusernamedomainstatus_filedatamastodonr   eindexmissing
collectionr
   r$   r   barr   s                   f/home/feoh/.local/pipx/venvs/mastodon-archive/lib/python3.11/site-packages/mastodon_archive/replies.pyr   r      s\   
 DI..Xv8#h.8K9[T4:FFFDz$H: o2244   %Q//T"""DMMMHQKKKK(CFF22L:     !#*%%%% EG" , ,

 T!!: ?0:=>>>J'H: I)S]]J,GGHHH" 	, 	,(#/#H-F $<5((*+E&,''	, : 7&#e**5666: -+,,,z" 9 9(#/?(@(L&'u44v&67888: :'3w<<8999
7||cz 	Q 47:7||s7JQ7NP Q Q Q 7||aD  GG9oGz 	6jG555C 	 	B.!,,v&&&& . . .3q66))[CFF-B-B!#*----	. : 


z 	JJLLL!Y	+t4:6666665 s1   /B 
D=B%D88D=0*L
M-%>M((M-)r   os.pathosprogress.barr    r   r        r3   <module>r:      s[     


             d7 d7 d7 d7 d7r9   