| Server IP : 203.96.225.211 / Your IP : 216.73.216.228 Web Server : nginx/1.24.0 System : Linux iot1 6.8.0-151-generic #151-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 11 01:28:36 UTC 2026 x86_64 User : papel ( 1002) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /dma/project/sentry/rawdata/__pycache__/ |
Upload File : |
�
G�<j� � �6 � d dl Z d dlZd dlZ G d� d� Zd� Zy)� Nc �0 � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zy)� extractorc �$ � t |� | _ y �N)�list�dformat)�selfr s �'/home/project/sentry/rawdata/script2.py�__init__zextractor.__init__ s
� ��G�}��� c � � d}|t | j � k rk| j | j | � | j |� �| j | j |� fS |dz
}|t | j � k r�jy y �Nr � )�lenr � read_json�extract_values�fmt)r �data�is r
�__extract__zextractor.__extract__ ss � �
���#�d�l�l�#�#��N�N�4�<�<��?�+��"�"�4�(�4��x�x��!4�!4�T�!:�:�:�
��F�A� �#�d�l�l�#�#r c �4 � t j j t j � d� }t t j j |d� d� 5 }t j |� }| j ||� d d d � y # 1 sw Y y xY w)N�rawdataz
data2.json�r)�os�path�join�getcwd�open�json�load�extract_fields)r r �base_url�filer s r
r zextractor.read_json si � ��7�7�<�<�� � ��Y�7��
�"�'�'�,�,�x��6��
<� /���9�9�T�?�D�����g�.� /� /� /�s �(B�Bc �F � || d | _ || d | _ || _ y )N�sep�fields)�sepsr&