#!/usr/bin/env python3.8.2
# -*- coding:utf-8 -*-

import os
import re
import json
import time
from datetime import datetime
from utils import strings
from dateutil.relativedelta import relativedelta
if __name__ == '__main__':
    filename = os.getcwd() + '/test/data/resume/51job/51_zh8_12.html'
    with open(filename, 'r') as f:
        fileContext = f.read()
        f.close()

    post_args = strings.rpc_params({
        'c': 'apis/logic_parse',
        'm': 'parsers_engine',
        'p': {
            'site_id': 1,
            'type': "resume",
            'body': fileContext,
        }
    })
    print(json.dumps(post_args, ensure_ascii=False))
