Git Product home page Git Product logo

buy_pig_plan_python's People

Contributors

xxcosmos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

buy_pig_plan_python's Issues

请问这是什么原因

系统centos7,drive已安装
`[root@ip-172-26-38-6 buy_pig_plan_python]# python3 main.py
Traceback (most recent call last):
File "main.py", line 7, in
from config import settings
File "/home/centos/buy_pig_plan_python/config.py", line 15, in
"driver":webdriver.Firefox(),
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/firefox/webdriver.py", line 174, in init
keep_alive=True)
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities

`

这个是错误怎么解决

Traceback (most recent call last):
File "C:/Users/Administrator/Desktop/buy_pig_plan_python/main.py", line 62, in
main()
File "C:/Users/Administrator/Desktop/buy_pig_plan_python/main.py", line 19, in main
url_list = get_url_list()
File "C:/Users/Administrator/Desktop/buy_pig_plan_python/main.py", line 57, in get_url_list
url_list = json.load(f)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\json_init_.py", line 293, in load
return loads(fp.read(),
UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 67: illegal multibyte sequence

利用python直接运行出现这个错误,能帮忙看下?

Traceback (most recent call last):
File "D:\buy_pig_plan_python-master\main.py", line 62, in
main()
File "D:\buy_pig_plan_python-master\main.py", line 19, in main
url_list = get_url_list()
File "D:\buy_pig_plan_python-master\main.py", line 57, in get_url_list
url_list = json.load(f)
File "C:\Users\hgx\AppData\Local\Programs\Python\Python38\lib\json_init_.py", line 293, in load
return loads(fp.read(),
UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 39: illegal multibyte sequence

有关json文件

您好,想请问一下能否更新一下请求网站的json文件,因为我看原作者两个月前重新更新了js,不知能否更新一下,谢谢您

运行错误

Traceback (most recent call last):
File "C:\Users\xiao\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start
stdin=PIPE)
File "C:\Users\xiao\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 709, in init
restore_signals, start_new_session)
File "C:\Users\xiao\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "buy_pig_plan/main.py", line 7, in
from config import settings
File "E:\xiao\attack\buy_pig_plan\config.py", line 15, in
"driver":webdriver.Firefox(),
File "C:\Users\xiao\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 164, in init
self.service.start()
File "C:\Users\xiao\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 83, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

求教

The version of firefox cannot be detected. Trying with latest driver version
Traceback (most recent call last):
File "E:\软件\python\lib\site-packages\selenium\webdriver\common\driver_finder.py", line 38, in get_path
path = SeleniumManager().driver_location(options) if path is None else path
File "E:\软件\python\lib\site-packages\selenium\webdriver\common\selenium_manager.py", line 97, in driver_location
options.binary_location = browser_path
File "E:\软件\python\lib\site-packages\selenium\webdriver\firefox\options.py", line 72, in binary_location
self.binary = value
File "E:\软件\python\lib\site-packages\selenium\webdriver\firefox\options.py", line 57, in binary
new_binary = FirefoxBinary(new_binary)
File "E:\软件\python\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 51, in init
"Failed to find firefox binary. You can set it by specifying "
selenium.common.exceptions.WebDriverException: Message: Failed to find firefox binary. You can set it by specifying the path to 'firefox_binary':

from selenium.webdriver.firefox.firefox_binary import FirefoxBinary

binary = FirefoxBinary('/path/to/binary')
driver = webdriver.Firefox(firefox_binary=binary)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "main.py", line 7, in
from config import settings
File "E:\软件\电话轰炸\4-\buy_pig_plan_python\config.py", line 15, in
"driver":webdriver.Firefox(),
File "E:\软件\python\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 59, in init
self.service.path = DriverFinder.get_path(self.service, options)
File "E:\软件\python\lib\site-packages\selenium\webdriver\common\driver_finder.py", line 41, in get_path
raise NoSuchDriverException(msg) from err
selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for firefox using Selenium Manager.; For documentation on this error, please v
isit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location

修改BUG

将main.py第56-59行改为

f = open(filepath, encoding='UTF-8') //此处编码需要改为UTF-8
url_list = json.load(f)
return url_list

建议新增一个功能

你好作者,鉴于目前大部分网址无效。建议新增一个功能,凡是失败的网址自动删除,最后得到一个有效的网址列表,这样效率更高

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.