Esempio n. 1
0
os.environ['REQUESTS_CA_BUNDLE'] = 'cacert.pem'
DureeBrevet = 20
SchemeVersion = '20140101'  #for the url to the classification scheme

ListeBrevet = []
#opening request file, reading parameters
with open("..//Requete.cql", "r") as fic:
    contenu = fic.readlines()
    for lig in contenu:
        #if not lig.startswith('#'):
        if lig.count('request:') > 0:
            requete = lig.split(':')[1].strip()
        if lig.count('DataDirectory:') > 0:
            ndf = lig.split(':')[1].strip()
        if lig.count('GatherContent') > 0:
            Gather = ReturnBoolean(lig.split(':')[1].strip())
        if lig.count('GatherBiblio') > 0:
            GatherBiblio = ReturnBoolean(lig.split(':')[1].strip())
        if lig.count('GatherPatent') > 0:
            GatherPatent = ReturnBoolean(lig.split(':')[1].strip())
        if lig.count('GatherFamilly') > 0:
            GatherFamilly = ReturnBoolean(lig.split(':')[1].strip())
rep = ndf
if GatherFamilly:
    ResultPath = '..//DONNEES//' + rep + '//PatentBiblios'
    ResultPathFamilies = '..//DONNEES//' + rep + '//PatentBiblios'
    temporPath = '..//DONNEES//' + rep + '//tempo'
    ResultContents = '..//DONNEES//' + rep + '//PatentContents'
    try:
        os.makedirs(ResultContents + '//' + 'FamiliesAbstracts')
        os.makedirs(temporPath)
Esempio n. 2
0
SchemeVersion = '20140101'  #for the url to the classification scheme
import os, sys, datetime

ListeBrevet = []
#ouverture fichier de travail
#On récupère la requête et les noms des fichiers de travail
with open("..//Requete.cql", "r") as fic:
    contenu = fic.readlines()
    for lig in contenu:
        #if not lig.startswith('#'):
        if lig.count('request:') > 0:
            requete = lig.split(':')[1].strip()
        if lig.count('DataDirectory:') > 0:
            ndf = lig.split(':')[1].strip()
        if lig.count('GatherContent') > 0:
            Gather = ReturnBoolean(lig.split(':')[1].strip())
        if lig.count('GatherBiblio') > 0:
            GatherBiblio = ReturnBoolean(lig.split(':')[1].strip())
        if lig.count('GatherPatent') > 0:
            GatherPatent = ReturnBoolean(lig.split(':')[1].strip())
        if lig.count('GatherFamilly') > 0:
            GatherFamilly = ReturnBoolean(lig.split(':')[1].strip())
        if lig.count('InventorNetwork') > 0:
            P2NInv = ReturnBoolean(lig.split(':')[1].strip())
        if lig.count('ApplicantNetwork') > 0:
            AppP2N = ReturnBoolean(lig.split(':')[1].strip())
        if lig.count('ApplicantInventorNetwork') > 0:
            P2NAppInv = ReturnBoolean(lig.split(':')[1].strip())
        if lig.count('InventorCrossTechNetwork') > 0:
            P2NInvCT = ReturnBoolean(lig.split(':')[1].strip())
        if lig.count('CompleteNetwork') > 0: