diff --git a/packages/search/.vscode/launch.json b/packages/search/.vscode/launch.json index 60f8739c..60368e67 100644 --- a/packages/search/.vscode/launch.json +++ b/packages/search/.vscode/launch.json @@ -4,397 +4,6 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Launch Program - Tests:File", - "skipFiles": [ - "/**" - ], - "program": "${workspaceFolder}/dist-in/main.js", - "preLaunchTask": "tsc: build - tsconfig.json", - "outFiles": [ - "${workspaceFolder}//**/*.js" - ], - "args": [ - "search", - "scaleserp" - ] - }, - { - "type": "node", - "request": "launch", - "name": "Launch Program - GoogleMaps", - "skipFiles": [ - "/**" - ], - "program": "${workspaceFolder}/dist-in/main.js", - "preLaunchTask": "tsc: build - tsconfig.json", - "outFiles": [ - "${workspaceFolder}//**/*.js" - ], - "args": [ - "googlemaps", - "--query='inyección de plastico'", - "--category=injection", - "--searchFrom=Barcelona, Catalonia, Spain", - "--filterCountry=Spain", - "--google_domain_='google.es'", - "--limit=10", - "--debug=true" - ], - "outputCapture": "std" - }, - { - "type": "node", - "request": "launch", - "name": "GoogleMaps::Each:ES", - "skipFiles": [ - "/**" - ], - "program": "${workspaceFolder}/dist-in/main.js", - "outFiles": [ - "${workspaceFolder}//**/*.js" - ], - "args": [ - "googlemaps-each", - "--query='Carpintería'", - "--category=injection", - "--searchFrom=${TOWN}, ${AREA}", - "--filterCountry_=Spain", - "--google_domain_='google.es'", - "--source='${OSR_ROOT}/products/company/campaign/spain/terms.json'", - "--list='osr-ai://list at least 20 major cities in ${AREA} with industrial activities, as JSON array, in spanish, flat, no objects, no comments?model=gpt-o&filters=code,JSONParse'", - "--dst='./${CATEGORY}/${QUERY}.xls'", - "--cwd='${OSR_ROOT}/products/company/campaign/${COUNTRY}/${AREA}-ai/${TOWN}'", - "--limit=200", - "--meta=true", - "--findEMail=true", - "--meta=true", - "--country=spain", - "--area=spain", - "--searchCache=true", - "--logLevel=debug", - "--cache=true", - "--zoom=11", - "--headless=true" - ], - "outputCapture": "std" - }, - { - "type": "node", - "request": "launch", - "name": "GoogleMaps::Each:FR", - "skipFiles": [ - "/**" - ], - "program": "${workspaceFolder}/dist-in/main.js", - "outFiles": [ - "${workspaceFolder}//**/*.js" - ], - "args": [ - "googlemaps-each", - "--query='menuiserie'", - "--category=injection", - "--searchFrom=${TOWN}, ${COUNTRY}", - "--google_domain_='google.es'", - "--source='${OSR_ROOT}/products/company/campaign/france/terms.json'", - "--list='osr-ai://list at least 20 major cities next to ${AREA}, as JSON array, in french, flat, no objects, no comments?model=gpt-o&filters=code,JSONParse'", - "--dst='./${CATEGORY}/${QUERY}.xls'", - "--cwd='${OSR_ROOT}/products/company/campaign/${COUNTRY}/${AREA}-ai/${TOWN}'", - "--limit=300", - "--meta=true", - "--findEMail=true", - "--meta=true", - "--country=france", - "--area=Toulouse", - "--searchCache=true", - "--logLevel=debug", - "--cache=true", - "--headless=true", - "--log='./log-Toulouse.json'" - ], - "outputCapture": "std" - }, - { - "type": "node", - "request": "launch", - "name": "GoogleMaps::Each:DE", - "skipFiles": [ - "/**" - ], - "program": "${workspaceFolder}/dist-in/main.js", - "outFiles": [ - "${workspaceFolder}//**/*.js" - ], - "args": [ - "googlemaps-each", - "--query='tischlerei'", - "--category=carepentry", - "--searchFrom=${TOWN}, ${COUNTRY}", - "--google_domain='google.de'", - //"--source='${OSR_ROOT}/products/company/campaign/france/terms.json'", - //"--list='osr-ai://list at least 20 major cities next to ${AREA}, as JSON array, in german, flat, no objects, no comments?model=gpt-o&filters=code,JSONParse'", - "--dst='./${CATEGORY}/${QUERY}.xls'", - "--cwd='${OSR_ROOT}/products/company/campaign/${COUNTRY}/${AREA}-ai/${TOWN}'", - "--list='${OSR_ROOT}/products/company/campaign/${COUNTRY}/cities.json'", - "--limit=300", - "--meta=true", - "--findEMail=true", - "--meta=true", - "--country=germany", - "--area=berlin", - "--searchCache=true", - "--logLevel=debug", - "--cache=true", - "--zoom=12", - "--headless=true", - "--log='./log-germany.json'" - ], - "outputCapture": "std" - }, - { - "type": "node", - "request": "launch", - "name": "Madrid", - "skipFiles": [ - "/**" - ], - "program": "${workspaceFolder}/main.ts", - "outFiles": [ - "${workspaceFolder}//**/*.js" - ], - "args": [ - "googlemaps-each", - "--query='inyección de plastico'", - "--category=injection", - "--searchFrom=Madrid,Spain", - "--filterCountry=Spain", - "--google_domain_='google.es'", - "--source='${OSR_ROOT}/products/company/campaign/spain/barcelona/design/terms.json'", - "--limit=2", - "--debug=true", - "--meta=true", - "--findEMail=true", - "--meta=true", - "--cache=false", - "--zoom=12", - "--headless=true" - ], - "outputCapture": "std" - }, - { - "type": "node", - "request": "launch", - "name": "GoogleMaps - EMail - Test - Fablabs Barcelona", - "skipFiles": [ - "/**" - ], - "program": "${workspaceFolder}/dist-in/main.js", - "preLaunchTask": "tsc: build - tsconfig.json", - "args": [ - "googlemaps", - "search", - "--query='carpentry'", - "--category=carpentry", - "--searchFrom=Spain, Madrid", - "--filterCountry=Spain", - "--google_domain='google.es'", - "--dst='./tests/campaign/${FROM}/${CATEGORY}/${QUERY}-${MM}.xlsx'", - "--source='${OSR_ROOT}/products/company/campaign/spain/barcelona/design/terms.json'", - "--limit=10", - "--logLevel=debug", - "--findEMail=true", - "--headless=true", - "--meta=true", - "--cache=false", - "--zoom=12" - ], - "outputCapture": "std" - }, - { - "type": "node", - "request": "launch", - "name": "GoogleMaps - EMail - Test - Fablabs Barcelona", - "skipFiles": [ - "/**" - ], - "program": "${workspaceFolder}/dist-in/main.js", - "preLaunchTask": "tsc: build - tsconfig.json", - "args": [ - "googlemaps", - "search", - "--query='carpentry'", - "--category=carpentry", - "--searchFrom=Spain, Madrid", - "--filterCountry=Spain", - "--google_domain='google.es'", - "--dst='./tests/campaign/${FROM}/${CATEGORY}/${QUERY}-${MM}.xlsx'", - "--source='${OSR_ROOT}/products/company/campaign/spain/barcelona/design/terms.json'", - "--limit=10", - "--logLevel=debug", - "--findEMail=true", - "--headless=true", - "--meta=true", - "--cache=false", - "--zoom=12" - ], - "outputCapture": "std" - }, - { - "type": "node", - "request": "launch", - "name": "GoogleMaps - Cache", - "skipFiles": [ - "/**" - ], - "program": "${workspaceFolder}/dist-in/main.js", - "preLaunchTask": "tsc: build - tsconfig.json", - "args": [ - "googlemaps", - "search", - "--query='carpentry'", - "--category=carpentry", - "--searchFrom=Spain, Madrid", - "--filterCountry=Spain", - "--google_domain='google.es'", - "--dst='./tests/campaign/${FROM}/${CATEGORY}/${QUERY}-${MM}.xlsx'", - "--_source='${OSR_ROOT}/products/company/campaign/spain/barcelona/design/terms.json'", - "--index='${OSR_ROOT}/osr-directory/meta/index.json'", - "--limit=10", - "--logLevel=debug", - "--findEMail=true", - "--headless=true", - "--meta=true", - "--cache=false", - "--searchCache=true", - "--zoom=12" - ], - "outputCapture": "std" - }, - { - "type": "node", - "request": "launch", - "name": "GoogleMaps - EMail - Report", - "skipFiles": [ - "/**" - ], - "program": "${workspaceFolder}/dist-in/main.js", - "preLaunchTask": "tsc: build - tsconfig.json", - "args": [ - "report", - "query", - "--category=carpentry", - "--searchFrom=Spain, Madrid", - "--country=Spain", - "--dst='${OSR_ROOT}/products/company/campaign/contacts/carpenters.json'", - "--_dst='${OSR_ROOT}/products/company/campaign/contacts/types.json'", - "--index='${OSR_ROOT}/osr-directory/meta/index.json'", - "--limit=20", - "--logLevel=debug", - "--findEMail=true", - "--headless=true", - "--query_=\"$[?(@.type == \"Recycling center\" && @.reviews > 65 && @.email != null && \"Recycling center\" in @.types )]\"", - "--query_x=\"$[?((@.type == \"Carpenter\" || @.type == \"Woodworker\") && @.reviews > 1 && @.rating > 3 && @.email != null )]\"", - "--queryV=\"$[?((@.type == \"Carpenter\" || @.type == \"Woodworker\" || @.type == \"Furniture maker\" || @.type == \"Furniture manufacturer\") && @.email != null && @.geo.principalSubdivision == \"Comunitat Valenciana\" )]\"", - "--query=\"$[?((@.type == \"Carpenter\" || @.type == \"Woodworker\" || @.type == \"Furniture maker\" || @.type == \"Furniture manufacturer\") && @.email != null )]\"", - "--query2=\"$..geo.principalSubdivision\"", - "--meta=true", - "--cache=false", - "--zoom=15" - ], - "outputCapture": "std" - }, - { - "type": "node", - "request": "launch", - "name": "GoogleMaps - Paris", - "skipFiles": [ - "/**" - ], - "program": "${workspaceFolder}/dist-in/main.js", - "preLaunchTask": "tsc: build - tsconfig.json", - "outFiles": [ - "${workspaceFolder}//**/*.js" - ], - "args": [ - "googlemaps", - "--query='fablab'", - "--category=injection", - "--searchFrom=Paris, France", - "--language=en", - "--filterCountry=France", - "--google_domain='google.fr'", - "--dst='${POLYMECH_ROOT}/campaign/maps/${FROM}/${CATEGORY}/${QUERY}-${MM}.xls'", - "--limit=50", - "--source='${POLYMECH_ROOT}/campaign/france-design.json'", - "--debug=false", - "--findEMail=true", - "--meta=true", - "--cache=false" - ], - "outputCapture": "std" - }, - { - "type": "node", - "request": "launch", - "name": "GoogleMaps - Algeria", - "skipFiles": [ - "/**" - ], - "program": "${workspaceFolder}/dist-in/main.js", - "preLaunchTask": "tsc: build - tsconfig.json", - "outFiles": [ - "${workspaceFolder}//**/*.js" - ], - "args": [ - "googlemaps", - "--category=injection", - "--searchFrom=Algeria Africa", - "--language=en", - "--filterContinent=Africa", - "--google_domain='google.co.uk'", - "--dst='./tests/africa/maps/${FROM}/${CATEGORY}/${QUERY}-${MM}.xls'", - "--limit=50", - "--source='${OSR_ROOT}/osr-directory/meta/global/search/africa-terms.json'", - "--debug=false", - "--findEMail=true", - "--meta=true", - "--cache=false" - ], - "outputCapture": "std" - }, - { - "type": "node", - "request": "launch", - "name": "GoogleMaps - Paris - Social", - "skipFiles": [ - "/**" - ], - "program": "${workspaceFolder}/dist-in/main.js", - "preLaunchTask": "tsc: build - tsconfig.json", - "outFiles": [ - "${workspaceFolder}//**/*.js" - ], - "args": [ - "googlemaps", - "--query='fablab'", - "--category=injection", - "--searchFrom=Bordeaux, France", - "--language=en", - "--filterCountry=France", - "--google_domain='google.fr'", - "--dst='${POLYMECH_ROOT}/campaign/test/${COUNTRY}/${FROM}/${CATEGORY}/${QUERY}-${MM}.xls'", - "--limit=50", - "--source='${POLYMECH_ROOT}/campaign/france-design.json'", - "--debug=false", - "--findEMail=true", - "--meta=true", - "--cache=false", - "--headless=true" - ], - "outputCapture": "std" - }, { "type": "node", "request": "launch", @@ -431,7 +40,7 @@ "--migrate=true", "--log='./log-Toulouse.json'" ], - "outputCapture": "std" + "outputCapture": "std" } ] } \ No newline at end of file