Spaces:
Sleeping
Sleeping
File size: 1,037 Bytes
79b2eb6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
import requests
def fetch_website(url):
"""
Fetch and return the first 1000 characters of the given URL.
"""
try:
response = requests.get(url, timeout=5)
response.raise_for_status()
return response.text[:1000] + "..."
except Exception as e:
return f"Error fetching {url}: {e}"
def list_wallets():
"""
Return a curated list of popular Stellar wallets.
"""
return """
✅ **Popular Stellar wallets:**
- [Lobstr](https://lobstr.co/)
- [Solar Wallet](https://solarwallet.io/)
- [StellarTerm](https://stellarterm.com/)
- [Albedo](https://albedo.link/)
Always do your own research before using any wallet!
"""
def get_docs_links():
"""
Return quick links to key Stellar docs.
"""
return """
📚 **Key Stellar resources:**
- [Official site](https://stellar.org)
- [Horizon API](https://developers.stellar.org/docs/fundamentals-and-concepts/horizon/)
- [Soroban smart contracts](https://soroban.stellar.org/docs)
- [GitHub](https://github.com/stellar)
"""
|