More updates and fixes to some resolutions.
This commit is contained in:
@@ -19,7 +19,8 @@ class RegexMatch:
|
||||
'value': ''},
|
||||
'Max Results': {'description': 'Please enter the Maximum number of Results to return',
|
||||
'type': 'String',
|
||||
'value': ''},
|
||||
'value': '',
|
||||
'default': '5'},
|
||||
'Re Flags': {'description': 'Select Re Flags to be used while compiling the regex',
|
||||
'type': 'MultiChoice',
|
||||
'value': {'re.I', 're.M', 're.S'}
|
||||
@@ -35,7 +36,12 @@ class RegexMatch:
|
||||
}
|
||||
|
||||
returnResults = []
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
search_param = parameters['Regex Match']
|
||||
flags = parameters['Re Flags']
|
||||
print(flags)
|
||||
|
||||
@@ -40,6 +40,8 @@ class GetCollectionsInfo:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "The value for parameter 'Max Results' is not a valid integer."
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
with FuturesSession(max_workers=15) as session:
|
||||
for entity in entityJsonList:
|
||||
uidList.append(entity['uid'])
|
||||
@@ -54,7 +56,7 @@ class GetCollectionsInfo:
|
||||
return "Please check your internet connection"
|
||||
|
||||
max_results = int(len(response['results']))
|
||||
if linkNumbers == 0 or linkNumbers >= max_results:
|
||||
if linkNumbers >= max_results:
|
||||
collections = response['results']
|
||||
else:
|
||||
collections = response['results'][0: linkNumbers]
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
class EFDByName:
|
||||
name = 'Get EFD Reports by Name'
|
||||
description = 'Return Nodes Of Websites to Reports'
|
||||
originTypes = {'Person'}
|
||||
originTypes = {'Person', 'Politically Exposed Person'}
|
||||
resultTypes = {'Website'}
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return.\n'
|
||||
'Returns 5 more recent by default',
|
||||
'Returns the 5 most recent by default.',
|
||||
'type': 'String',
|
||||
'default': '5'},
|
||||
'Filer Type': {'description': 'Please enter the Name you want to search for.\n'
|
||||
@@ -35,7 +35,12 @@ class EFDByName:
|
||||
returnResults = []
|
||||
links = []
|
||||
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
|
||||
url = 'https://efdsearch.senate.gov/search/'
|
||||
fireFoxOptions = webdriver.FirefoxOptions()
|
||||
|
||||
@@ -5,7 +5,7 @@ class FramesLookUp:
|
||||
name = "Frames Look Up"
|
||||
|
||||
# A string that describes this resolution.
|
||||
description = "Returns Nodes 20-F Forms"
|
||||
description = "Returns Frame Forms"
|
||||
|
||||
originTypes = {'Form Field'}
|
||||
|
||||
@@ -33,7 +33,13 @@ class FramesLookUp:
|
||||
'User-Agent': 'user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0',
|
||||
}
|
||||
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
|
||||
year = parameters['Year']
|
||||
quarterChoice = parameters['Quarter']
|
||||
quarter = quarterChoice[quarterChoice.find("(") + 1:quarterChoice.find(")")]
|
||||
|
||||
@@ -24,7 +24,12 @@ class Get10KForms:
|
||||
'User-Agent': 'user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0',
|
||||
}
|
||||
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
returnResults = []
|
||||
for entity in entityJsonList:
|
||||
uid = entity['uid']
|
||||
|
||||
@@ -24,7 +24,12 @@ class Get10QForms:
|
||||
'User-Agent': 'user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0',
|
||||
}
|
||||
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
returnResults = []
|
||||
for entity in entityJsonList:
|
||||
uid = entity['uid']
|
||||
|
||||
@@ -12,7 +12,7 @@ class Get13FForms:
|
||||
resultTypes = {'Form13F'}
|
||||
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return.\n'
|
||||
'Returns the 5 most recent by default.',
|
||||
'Returns 5 more recent by default',
|
||||
'type': 'String',
|
||||
'default': '5'}}
|
||||
|
||||
@@ -31,7 +31,12 @@ class Get13FForms:
|
||||
name = ''
|
||||
date = ''
|
||||
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
returnResults = []
|
||||
for entity in entityJsonList:
|
||||
archives_set = set()
|
||||
|
||||
@@ -24,7 +24,12 @@ class Get20FForms:
|
||||
'User-Agent': 'user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0',
|
||||
}
|
||||
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
returnResults = []
|
||||
for entity in entityJsonList:
|
||||
uid = entity['uid']
|
||||
|
||||
@@ -28,7 +28,12 @@ class Get3Forms:
|
||||
'User-Agent': 'user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0',
|
||||
}
|
||||
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
returnResults = []
|
||||
for entity in entityJsonList:
|
||||
archives_set = set()
|
||||
|
||||
@@ -24,7 +24,12 @@ class Get40FForms:
|
||||
'User-Agent': 'user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0',
|
||||
}
|
||||
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
returnResults = []
|
||||
for entity in entityJsonList:
|
||||
uid = entity['uid']
|
||||
|
||||
@@ -28,7 +28,12 @@ class Get4Forms:
|
||||
'User-Agent': 'user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0',
|
||||
}
|
||||
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
returnResults = []
|
||||
for entity in entityJsonList:
|
||||
archives_set = set()
|
||||
|
||||
@@ -24,7 +24,12 @@ class Get6KForms:
|
||||
'User-Agent': 'user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0',
|
||||
}
|
||||
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
returnResults = []
|
||||
for entity in entityJsonList:
|
||||
uid = entity['uid']
|
||||
|
||||
@@ -24,7 +24,12 @@ class Get8KForms:
|
||||
'User-Agent': 'user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0',
|
||||
}
|
||||
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
returnResults = []
|
||||
for entity in entityJsonList:
|
||||
uid = entity['uid']
|
||||
|
||||
@@ -28,7 +28,12 @@ class GetDForms:
|
||||
'User-Agent': 'user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0',
|
||||
}
|
||||
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
returnResults = []
|
||||
for entity in entityJsonList:
|
||||
archives_set = set()
|
||||
|
||||
@@ -26,7 +26,12 @@ class GetN8FForms:
|
||||
'User-Agent': 'user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0',
|
||||
}
|
||||
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
returnResults = []
|
||||
for entity in entityJsonList:
|
||||
archives_set = set()
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
requests
|
||||
selenium
|
||||
beautifulsoup4
|
||||
xmltodict
|
||||
@@ -9,11 +9,10 @@ class ExtractRelationship:
|
||||
|
||||
resultTypes = {'Currency', 'Politically Exposed Person', 'Little Sis ID'}
|
||||
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return. '
|
||||
'Enter "0" (no quotes) to return all available results.',
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return.',
|
||||
'type': 'String',
|
||||
'value': '',
|
||||
'default': '0'}}
|
||||
'default': '5'}}
|
||||
|
||||
def resolution(self, entityJsonList, parameters):
|
||||
import time
|
||||
@@ -26,6 +25,8 @@ class ExtractRelationship:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Non-integer specified for 'Max Results' parameter; cannot run resolution."
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
|
||||
for entity in entityJsonList:
|
||||
uid = entity['uid']
|
||||
@@ -46,8 +47,7 @@ class ExtractRelationship:
|
||||
data = apiRequest.json()
|
||||
|
||||
data = data['data']
|
||||
if linkNumbers != 0:
|
||||
data = data[:linkNumbers]
|
||||
data = data[:linkNumbers]
|
||||
|
||||
for relationship in data:
|
||||
index_of_child.append(len(returnResults))
|
||||
|
||||
@@ -24,7 +24,7 @@ class IPv4Scan:
|
||||
},
|
||||
'Nmap Ports': {'description': 'Select Ports to scan.\n'
|
||||
'Type ports separated by commas no spaces: 80,443,22\n'
|
||||
'Type "All" (no quotes) to scan ports',
|
||||
'Type "All" (no quotes) to scan all ports',
|
||||
'type': 'String',
|
||||
'value': 'Enter ports to scan here',
|
||||
'default': 'All'
|
||||
|
||||
@@ -10,10 +10,10 @@ class OpenCorporateCompaniesAddress:
|
||||
|
||||
resultTypes = {'Address'}
|
||||
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return. '
|
||||
'Enter "0" (no quotes) to return all available results.',
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return.',
|
||||
'type': 'String',
|
||||
'value': ''},
|
||||
'value': '',
|
||||
'default': '5'},
|
||||
|
||||
'OpenCorporates API Key': {
|
||||
'description': 'Enter your API Key. If you do not have one, type: No Key (case sensitive).\n'
|
||||
@@ -33,9 +33,12 @@ class OpenCorporateCompaniesAddress:
|
||||
returnResult = []
|
||||
|
||||
officer_url = 'https://api.opencorporates.com/v0.4/companies/search'
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
if linkNumbers == 0:
|
||||
linkNumbers = 9999999999
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
|
||||
for entity in entityJsonList:
|
||||
uid = entity['uid']
|
||||
|
||||
@@ -10,12 +10,12 @@ class OpenCorporateCompanyOfficers:
|
||||
|
||||
resultTypes = {'Person', 'Date'}
|
||||
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return.\n'
|
||||
'Enter "0" (no quotes) to return all available results.\n'
|
||||
'Only in some jurisdictions officers data are available,\n'
|
||||
'if no data are found the resolution will return no results.',
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return. '
|
||||
'Officer data may not be available for some jurisdictions. '
|
||||
'If no data is found the resolution will return no results.',
|
||||
'type': 'String',
|
||||
'value': ''},
|
||||
'value': '',
|
||||
'default': '5'},
|
||||
|
||||
'Inactive Officers': {'description': 'Display Inactive Officers',
|
||||
'type': 'SingleChoice',
|
||||
@@ -36,9 +36,12 @@ class OpenCorporateCompanyOfficers:
|
||||
import requests
|
||||
import time
|
||||
returnResults = []
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
if linkNumbers == 0:
|
||||
linkNumbers = 9999999999
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
|
||||
for entity in entityJsonList:
|
||||
jurisdictionCode = entity[list(entity)[3]]
|
||||
|
||||
@@ -10,8 +10,7 @@ class OpenCorporateCompanyResults:
|
||||
|
||||
resultTypes = {'Open Corporate Company'}
|
||||
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return. '
|
||||
'Enter "0" (no quotes) to return all available results.',
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return.',
|
||||
'type': 'String',
|
||||
'value': ''},
|
||||
|
||||
@@ -36,9 +35,12 @@ class OpenCorporateCompanyResults:
|
||||
from urllib import parse
|
||||
returnResults = []
|
||||
officer_url = 'https://api.opencorporates.com/v0.4/companies/search'
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
if linkNumbers == 0:
|
||||
linkNumbers = 9999999999
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
|
||||
for entity in entityJsonList:
|
||||
uid = entity['uid']
|
||||
|
||||
@@ -10,8 +10,7 @@ class OpenCorporateOfficerOccupation:
|
||||
|
||||
resultTypes = {'Company'}
|
||||
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return. '
|
||||
'Enter "0" (no quotes) to return all available results.',
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return.',
|
||||
'type': 'String',
|
||||
'value': ''},
|
||||
|
||||
@@ -36,9 +35,12 @@ class OpenCorporateOfficerOccupation:
|
||||
from urllib import parse
|
||||
returnResults = []
|
||||
officer_url = 'https://api.opencorporates.com/v0.4/officers/search'
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
if linkNumbers == 0:
|
||||
linkNumbers = 9999999999
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
|
||||
for entity in entityJsonList:
|
||||
uid = entity['uid']
|
||||
|
||||
@@ -36,6 +36,8 @@ class ThreatInfo:
|
||||
linkNumbers = int(parameters['Max Articles'])
|
||||
except ValueError:
|
||||
return "Invalid integer value specified for Max Articles."
|
||||
if linkNumbers < 0:
|
||||
return []
|
||||
|
||||
for entity in entityJsonList:
|
||||
uid = entity['uid']
|
||||
|
||||
@@ -11,8 +11,7 @@ class ReverseWhois:
|
||||
|
||||
resultTypes = {'Domain, Company'}
|
||||
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of domains to return. '
|
||||
'Enter "0" (no quotes) to return all available results.',
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of domains to return.',
|
||||
'type': 'String',
|
||||
'value': 'Maximum number of results',
|
||||
'default': '0'},
|
||||
@@ -30,9 +29,8 @@ class ReverseWhois:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Non-integer input provided for 'Max Results' parameter. Cannot execute resolution."
|
||||
|
||||
if linkNumbers == 0:
|
||||
linkNumbers = 9999999999
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
|
||||
for entity in entityJsonList:
|
||||
uid = entity['uid']
|
||||
|
||||
@@ -45,6 +45,8 @@ class SpyOnWeb:
|
||||
linkNumbers = 9999999999
|
||||
if uaNumber == 0:
|
||||
uaNumber = 9999999999
|
||||
if linkNumbers < 0 or uaNumber < 0:
|
||||
return []
|
||||
|
||||
api_token = parameters['SpyOnWeb API Key'].strip()
|
||||
|
||||
|
||||
@@ -12,10 +12,9 @@ class TwitterSearchByID:
|
||||
|
||||
resultTypes = {'Phrase'}
|
||||
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return. '
|
||||
'Enter "0" (no quotes) to return all available results.',
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return.',
|
||||
'type': 'String',
|
||||
'default': '0'},
|
||||
'default': '5'},
|
||||
'Access Token': {
|
||||
'description': 'Enter your API Key',
|
||||
'type': 'String',
|
||||
@@ -38,7 +37,12 @@ class TwitterSearchByID:
|
||||
import tweepy
|
||||
|
||||
returnResults = []
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
access_token = parameters['Access Token'].strip()
|
||||
access_token_secret = parameters['Secret'].strip()
|
||||
consumer_key = parameters['Consumer API Key'].strip()
|
||||
@@ -52,8 +56,6 @@ class TwitterSearchByID:
|
||||
for entity in entityJsonList:
|
||||
uid = entity['uid']
|
||||
twitter_id = entity['Twitter ID']
|
||||
if linkNumbers == 0:
|
||||
linkNumbers = 9999999999
|
||||
|
||||
cursor = tweepy.Cursor(api.user_timeline, id=twitter_id, tweeet_mode='extended').items(linkNumbers)
|
||||
|
||||
|
||||
@@ -12,10 +12,9 @@ class TwitterSearchByKeyWord:
|
||||
|
||||
resultTypes = {'Phrase'}
|
||||
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return. '
|
||||
'Enter "0" (no quotes) to return all available results.',
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of results to return.',
|
||||
'type': 'String',
|
||||
'default': '0'},
|
||||
'default': '5'},
|
||||
'Access Token': {
|
||||
'description': 'Enter your API Key',
|
||||
'type': 'String',
|
||||
@@ -38,7 +37,12 @@ class TwitterSearchByKeyWord:
|
||||
import tweepy
|
||||
|
||||
returnResults = []
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
try:
|
||||
linkNumbers = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "Invalid integer provided in 'Max Results' parameter"
|
||||
if linkNumbers <= 0:
|
||||
return []
|
||||
access_token = parameters['Access Token'].strip()
|
||||
access_token_secret = parameters['Secret'].strip()
|
||||
consumer_key = parameters['Consumer API Key'].strip()
|
||||
@@ -52,8 +56,6 @@ class TwitterSearchByKeyWord:
|
||||
for entity in entityJsonList:
|
||||
uid = entity['uid']
|
||||
phrase = entity['Phrase']
|
||||
if linkNumbers == 0:
|
||||
linkNumbers = 9999999999
|
||||
|
||||
cursor = tweepy.Cursor(api.user_timeline, q=phrase, tweeet_mode='extended').items(linkNumbers)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ class Whats_My_Name:
|
||||
"""
|
||||
The file web_accounts_list.json is required for the resolution Whats_My_Name.
|
||||
Find:true
|
||||
Replace:true,\n "selenium" : false
|
||||
Replace:true,\n "requires_javascript" : false
|
||||
Find: "valid" : true
|
||||
Replace: "valid" : "True"
|
||||
Find: "valid" : false
|
||||
|
||||
@@ -12,11 +12,10 @@ class WayBack:
|
||||
|
||||
resultTypes = {'Website'}
|
||||
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of webpages to return.\n'
|
||||
'Enter "0" (no quotes) to return everything.',
|
||||
parameters = {'Max Results': {'description': 'Please enter the maximum number of webpages to return.',
|
||||
'type': 'String',
|
||||
'value': 'Maximum number of results',
|
||||
'default': '0'},
|
||||
'default': '5'},
|
||||
'Year range to search for': {'description': 'Please enter the range of years desired\n'
|
||||
'In the Format: [start year] [end year]\n',
|
||||
'type': 'String',
|
||||
@@ -37,8 +36,8 @@ class WayBack:
|
||||
max_results = int(parameters['Max Results'])
|
||||
except ValueError:
|
||||
return "The value for parameter 'Max Results' is not a valid integer."
|
||||
if max_results == 0:
|
||||
max_results = 99999999
|
||||
if max_results <= 0:
|
||||
return []
|
||||
yearRange = parameters['Year range to search for'].split(" ")
|
||||
|
||||
with FuturesSession(max_workers=15) as session:
|
||||
|
||||
@@ -26,6 +26,9 @@ reportlab
|
||||
pandas
|
||||
svglib
|
||||
lxml
|
||||
# Speeds up parsing of webpages by bs4
|
||||
cchardet
|
||||
bs4
|
||||
|
||||
# Transition from selenium to playwright
|
||||
selenium
|
||||
|
||||
Reference in New Issue
Block a user