Code Monkey home page Code Monkey logo

Comments (12)

mustafadalga avatar mustafadalga commented on June 4, 2024

Uygulama kurulumu için gerekli adımları düzgün bir şekilde yaptınız mı ?

from instagram-bot.

altans10 avatar altans10 commented on June 4, 2024

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.

mustafadalga avatar mustafadalga commented on June 4, 2024

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.

altans10 avatar altans10 commented on June 4, 2024

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.

mustafadalga avatar mustafadalga commented on June 4, 2024

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.

altans10 avatar altans10 commented on June 4, 2024

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.

mustafadalga avatar mustafadalga commented on June 4, 2024

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.

altans10 avatar altans10 commented on June 4, 2024

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.

altans10 avatar altans10 commented on June 4, 2024

ş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.

mustafadalga avatar mustafadalga commented on June 4, 2024

İ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.

altans10 avatar altans10 commented on June 4, 2024

teşekkür ederim. Sorunlarımız çözüldü.

from instagram-bot.

mustafadalga avatar mustafadalga commented on June 4, 2024

Rica ederim,kolay gelsin.

from instagram-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.