cmd fix
Fix for security vulnerability Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
258da3a716
commit
739723bdd2
@@ -32,8 +32,8 @@ class XWrapper(SocialWrapper):
|
|||||||
posts: list[SocialPost] = []
|
posts: list[SocialPost] = []
|
||||||
|
|
||||||
for user in X_USERS:
|
for user in X_USERS:
|
||||||
cmd = f"rettiwt -k {self.api_key} tweet search {limit} -f {str(user)}"
|
cmd = ['rettiwt', '-k', self.api_key, 'tweet', 'search', str(limit), '-f', str(user)]
|
||||||
process = subprocess.run(cmd, capture_output=True, shell=True)
|
process = subprocess.run(cmd, capture_output=True)
|
||||||
results = process.stdout.decode()
|
results = process.stdout.decode()
|
||||||
json_result = json.loads(results)
|
json_result = json.loads(results)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user