Comments (12)
Uygulama kurulumu için gerekli adımları düzgün bir şekilde yaptınız mı ?
from instagram-bot.
python 3.9 kurulu
selenium paketi kurulu
birde kodu denemeden önce sizin verdiğiniz kurulumu yaptım
python -m pip install -r .\requirements.txt
başka bişey yapmadım.
from instagram-bot.
python -m pip install -r .\requirements.txt
komutunu çalıştırdığınzda paket kurulumları oldu mu ?
pip freeze
komutunu çalıştırıp çıktısını paylaşır mısınız ?
from instagram-bot.
C:\Users\BT>python -m pip install -r .\requirements.txt
Requirement already satisfied: selenium==3.141.0 in c:\users\bt\appdata\local\programs\python\python39\lib\site-packages (from -r .\requirements.txt (line 1)) (3.141.0)
Requirement already satisfied: termcolor==1.1.0 in c:\users\bt\appdata\local\programs\python\python39\lib\site-packages (from -r .\requirements.txt (line 2)) (1.1.0)
Requirement already satisfied: colorama==0.3.9 in c:\users\bt\appdata\local\programs\python\python39\lib\site-packages (from -r .\requirements.txt (line 3)) (0.3.9)
Requirement already satisfied: requests==2.22.0 in c:\users\bt\appdata\local\programs\python\python39\lib\site-packages (from -r .\requirements.txt (line 4)) (2.22.0)
Requirement already satisfied: urllib3==1.25.3 in c:\users\bt\appdata\local\programs\python\python39\lib\site-packages (from -r .\requirements.txt (line 5)) (1.25.3)
Requirement already satisfied: idna<2.9,>=2.5 in c:\users\bt\appdata\local\programs\python\python39\lib\site-packages (from requests==2.22.0->-r .\requirements.txt (line 4)) (2.8)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\bt\appdata\local\programs\python\python39\lib\site-packages (from requests==2.22.0->-r .\requirements.txt (line 4)) (2020.6.20)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\bt\appdata\local\programs\python\python39\lib\site-packages (from requests==2.22.0->-r .\requirements.txt (line 4)) (3.0.4)
C:\Users\BT>pip freeze
astroid==2.4.2
certifi==2020.6.20
chardet==3.0.4
colorama==0.3.9
idna==2.8
isort==5.5.4
lazy-object-proxy==1.4.3
mccabe==0.6.1
pylint==2.6.0
requests==2.22.0
selenium==3.141.0
six==1.15.0
termcolor==1.1.0
toml==0.10.1
urllib3==1.25.3
wrapt==1.12.1
from instagram-bot.
config.json dosyasının yüklenmesi sırasında bir hata meydana gelmektedir. config.json dosyasını düzgün bir şekilde indirdiğiniz mi.Dosya içerisindeki bir eksiklikten kaynaklı olabilir.
Kullandığınız python sürümü 3.9 olarak görünmektedir.Fakat 3.9 sürümü üzerinde test etmedim.3.8 sürümünü kurarak aynı işlemleri deneyebilirsiniz.
from instagram-bot.
3.8 kurdum ve sorunum devam ediyor. Java ile ilgili bir şey yüklenecek miydi? Onu yüklememiş olabilir miyim?
Traceback (most recent call last):
File "instagram.py", line 2031, in
instagram = Instagram()
File "instagram.py", line 21, in init
self.ayarlarYukle()
File "instagram.py", line 1040, in ayarlarYukle
self.config = json.load(dosya)
File "C:\Python\Python38\lib\json_init_.py", line 293, in load
return loads(fp.read(),
File "C:\Python\Python38\lib\json_init_.py", line 357, in loads
return _default_decoder.decode(s)
File "C:\Python\Python38\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Python\Python38\lib\json\decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 3 column 23 (char 87)
from instagram-bot.
json dosyasının yüklenmesi esnasında bir problem yaşanmaktadır.bu dosya ile bilgisayarınızdaki config.json dosya aynı mı ? Çünkü repoyu yeniden indirip kurduğumda bir problem ile karşılaşmıyorum. (config.json dosyasının instagram.py ile aynı klasörde olması gerekiyor.)
Uygulamayı C:\Users\BT\ klasöründe çalıştırıyorsunuz görünüyor. Bi de uygulamayı direk C:\ dizinine kopyalayıp dener misiniz ?
from instagram-bot.
Config ile instagram.py aynı dizinde. Python 3.8 tekrar kurduğumda c:\python\python38 dizinine kurdum. Çalıştırırkende c:\python\python38\insta>Python instagram.py şeklinde çalıştırıyorum
Tüm dosyalar insta klasörü içinde
from instagram-bot.
şuan botu çalıştırmayı başardım gibi. bi hesabın tüm gönderilerini beğen dediğimde böyle bir hata çıkıyor.
[-] An error occurred while liking balikesiraci's posts:Message: Unable to locate element: ul.k9GMp >li.Y8-fY >span >span.g47SY
from instagram-bot.
İnstagram web uygulamasının verileri javascript ile dinamik bir şekilde yüklenmektedir. İlgili html elemanları yüklenmeden seçmeye calıştığı için hatayı almaktasınız. İnternet yavaş olduğunda sayfa yavaş yüklenmektedir ve böyle hatalar olabilmektedir. Çözüm için config.json içerisinde yaptığınız işlemlerin süre aralıkları uzatabilirsiniz.
from instagram-bot.
teşekkür ederim. Sorunlarımız çözüldü.
from instagram-bot.
Rica ederim,kolay gelsin.
from instagram-bot.
Related Issues (20)
- json.decoder.JSONDecodeError: Unexpected UTF-8 BOM HOT 1
- after start, unable to find binary in default location HOT 1
- Message: Unable to locate element: span.g47SY HOT 1
- [suggestion] comment posts based on tags HOT 3
- Message: Element is not clickable at point (768,632) because another element HOT 1
- Error during user login:'Instagram' object has no attribute 'driver' HOT 1
- Error when launching the bot HOT 9
- logged in even when sign out happens successfully HOT 1
- Unfortunately does not work HOT 4
- Unable to locate element: ul.k9GMp >li.Y8-fY >span >span.g47SY HOT 2
- Çok kullanışlı ve başarılı! HOT 2
- Like by tagged posts HOT 2
- Unable to locate element: a.-nal3 > span.g47SY HOT 3
- Error after I run instagram.py HOT 1
- Config file is missing - Config dosyası eksik ! HOT 2
- Error during user login:'Instagram' object has no attribute 'driver' HOT 2
- login çalışmıyor HOT 5
- UNFOLLOW - Feature not working
- where's output data
- An error occurred while fetching active username:list index out of range
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instagram-bot.