Bu konu çözüldü olarak işaretlenmiştir. Çözülmediğini düşünüyorsanız konuyu rapor edebilirsiniz.
Benzer konular
- Makale
{
"API_KEY": "your_api_key_here",
"API_SECRET_KEY": "your_api_secret_key_here",
"ACCESS_TOKEN": "your_access_token_here",
"ACCESS_TOKEN_SECRET": "your_access_token_secret_here"
}
import json
# Twitter API bilgilerinizi buraya ekleyin
twitter_api_info = {
"API_KEY": "your_api_key_here",
"API_SECRET_KEY": "your_api_secret_key_here",
"ACCESS_TOKEN": "your_access_token_here",
"ACCESS_TOKEN_SECRET": "your_access_token_secret_here"
}
# JSON dosyasına yazma
file_path = 'twitter_api_credentials.json'
with open(file_path, 'w') as json_file:
json.dump(twitter_api_info, json_file, indent=4)
print(f"Twitter API bilgileri {file_path} dosyasına kaydedildi.")
Hallettim hocam. Botu yazdım kullanıyorum.Bot hangi uygulamanın botu? JSON verisinin yapısı nasıl? Bot hangi dille yazıldı? Bunların cevabı verilmesi gerekiyor ilk başta.
{
"API_KEY": "your_api_key_here",
"API_SECRET_KEY": "your_api_secret_key_here",
"ACCESS_TOKEN": "your_access_token_here",
"ACCESS_TOKEN_SECRET": "your_access_token_secret_here"
}
import json
# Twitter API bilgilerinizi buraya ekleyin
twitter_api_info = {
"API_KEY": "your_api_key_here",
"API_SECRET_KEY": "your_api_secret_key_here",
"ACCESS_TOKEN": "your_access_token_here",
"ACCESS_TOKEN_SECRET": "your_access_token_secret_here"
}
# JSON dosyasına yazma
file_path = 'twitter_api_credentials.json'
with open(file_path, 'w') as json_file:
json.dump(twitter_api_info, json_file, indent=4)
print(f"Twitter API bilgileri {file_path} dosyasına kaydedildi.")