
    cf                     P    d dl Z d dlZd dlmZ d dlmZmZ ddlmZ d Z	d Z
d ZdS )	    N)Bar)	timedeltadatetime   )corec                 F    |D ]}| d         |d         d         k    r dS dS )NidaccountFT )r
   mentionsmentions      h/home/feoh/.local/pipx/venvs/mastodon-archive/lib/python3.11/site-packages/mastodon_archive/following.py	is_lurkerr      s;      4=GI.t44455 54    c                 $    fd| D             S )Nc                 H    g | ]}|d          vt          |          |S )acct)r   ).0xr   	whitelists     r   
<listcomp>z find_lurkers.<locals>.<listcomp>   sC     ( ( (!y	))!X&& * )))r   r   )	followersr   r   s    ``r   find_lurkersr      s3    ( ( ( ( (y ( ( ( (r   c                    | j                             d          \  }}|dz   |z   dz   }t          j        |ddd          }d}d|vst	          |d                   dk    rt          dt          j        	           d
}d|vst	          |d                   dk    rt          dt          j        	           d}|dk    rt          j        |           | j	        r| j
        st          d           |d         }nN| j
        s't          dt          | j                  z   dz              t          j        |d         | j                  }t          j        ||          }| j        rGt          j        |           }t#          |d         ||d                   }	| j
        st%          dt	          |	                    }
|	D ]}| j
        s|
                                 	 |                    |d                    :# t*          $ r}dt          |          v rSt          d           t          j        |            t          j        |           }|                    |d                    nt          |t          j        	           Y d}~d}~ww xY w| j
        s|
                                 dS dS t#          |d         ||d                   }	t5          |	d           D ]+}t          |d         p|d         d|d         d           ,dS )z@
    List people you're following but who never mention you
    @z.user.z.jsonT)requiredquietcombiner   r   z:You need to run 'mastodon-archive archive --with-mentions')file   	followingz;You need to run 'mastodon-archive archive --with-following'   zConsidering the entire archivezConsidering the last z weeksUnfollowing)maxr	   zauthorized scopesz>
We need to authorize the app to make changes to your account.Nc                 "    | d         p| d         S )Ndisplay_nameusernamer   )r
   s    r   <lambda>zfollowing.<locals>.<lambda>`   s    %n5L9L r   )keyr&   r'   z <r   >)usersplitr   loadlenprintsysstderrexitallr   strweekskeepr   unfollow	readwriter   r   nextaccount_unfollow	Exceptiondeauthorizereadwritefollowaccount_blockfinishsorted)argsr'   domainstatus_filedataerrorr   r   mastodonaccountsbarr
   es                r   r!   r!   !   sn   
 --Xv8#h.8K9[4tTJJJD ET*%5!6!6!!;!;J:	 	 	 	$#d;&7"8"8A"="=K:	 	 	 	qyyx 	;z 	42333
#z 	)
OO$    9T*-tz::vx00I} 1>$''[ 19d:>NOOz 	:m3x==999C 	. 	.G: 



.))'$-8888 . . .&#a&&00[\\\$T***#3D99H**74=9999!#*----. z 	JJLLLLL	 	  [ 19d:>NOOh -M -M N N N 	1 	1Gw~6M'*:MMM&v0 1 1 1 1	1 	1s   G44
J>A?JJ)r0   os.pathosprogress.barr   r   r    r   r   r   r!   r   r   r   <module>rN      s     


        ( ( ( ( ( ( ( (        ( ( (
B1 B1 B1 B1 B1r   