Created
May 15, 2025 01:37
-
-
Save HarshaSuranjith/e743070f66fbec8e318af894fff109b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import requests | |
from urllib.parse import urlparse | |
# Create a directory for the papers | |
if not os.path.exists('ai_agent_papers'): | |
os.makedirs('ai_agent_papers') | |
# List of paper URLs and filenames | |
papers = [ | |
("https://arxiv.org/pdf/2504.09407.pdf", "01_UXAgent_Web_Design_Testing.pdf"), | |
("https://arxiv.org/pdf/2505.01441.pdf", "02_ARTIST_Agentic_Reasoning_RL.pdf"), | |
("https://arxiv.org/pdf/2505.03574.pdf", "03_LlamaFirewall_Secure_AI_Agents.pdf"), | |
("https://arxiv.org/pdf/2504.19413.pdf", "04_Mem0_Scalable_Agent_Memory.pdf"), | |
("https://arxiv.org/pdf/2504.19276.pdf", "05_Anyprefer_Preference_Data_Synthesis.pdf"), | |
("https://arxiv.org/pdf/2410.05295.pdf", "06_AutoDAN_Turbo_Jailbreak_LLMs.pdf"), | |
("https://arxiv.org/pdf/2504.04365.pdf", "07_AutoPDL_Prompt_Optimization.pdf"), | |
("https://arxiv.org/pdf/2504.17192.pdf", "08_Paper2Code_Scientific_Papers.pdf"), | |
("https://arxiv.org/pdf/2504.08725.pdf", "09_DocAgent_Code_Documentation.pdf"), | |
("https://arxiv.org/pdf/2504.15585.pdf", "10_LLM_Agent_Full_Stack_Safety.pdf"), | |
("https://arxiv.org/pdf/2505.02024.pdf", "11_Manus_AI_Autonomous_Agent.pdf"), | |
("https://arxiv.org/pdf/2504.16736.pdf", "12_Survey_AI_Agent_Protocols.pdf"), | |
] | |
# Download each paper | |
for url, filename in papers: | |
try: | |
print(f"Downloading {filename}...") | |
response = requests.get(url) | |
if response.status_code == 200: | |
with open(os.path.join('ai_agent_papers', filename), 'wb') as f: | |
f.write(response.content) | |
print(f"Successfully downloaded {filename}") | |
else: | |
print(f"Failed to download {filename}: Status code {response.status_code}") | |
except Exception as e: | |
print(f"Error downloading {filename}: {e}") | |
print("Download complete!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment