Git Product home page Git Product logo

Comments (16)

Leezj9671 avatar Leezj9671 commented on May 17, 2024

那么 feapder 是怎么解决充分利用多核性能的问题呢?

from feapder.

Boris-code avatar Boris-code commented on May 17, 2024

@Leezj9671
那么 feapder 是怎么解决充分利用多核性能的问题呢?

可以启动多个进程,同时采集

from feapder.

JinxYuan avatar JinxYuan commented on May 17, 2024

如果redis里面存的不是url怎么办?
start_callback好像拿不到redis数据

from feapder.

Boris-code avatar Boris-code commented on May 17, 2024

如果redis里面存的不是url怎么办?
start_callback好像拿不到redis数据

你的任务是没url 不需要下载的么?不需要下载有个参数 auto_request=False就可以了
https://boris.org.cn/feapder/#/source_code/Request

from feapder.

JinxYuan avatar JinxYuan commented on May 17, 2024

是的。
任务里是请求的参数和一些数据,数据需要拿出来和网页的请求数据做对比,
所以我这启动任务之后,是需要先拿到redis里的数据,才开始请求的。
没有找到怎么拿redis数据,我的生产环境是不能连数据库的

from feapder.

Boris-code avatar Boris-code commented on May 17, 2024

是的。
任务里是请求的参数和一些数据,数据需要拿出来和网页的请求数据做对比,
所以我这启动任务之后,是需要先拿到redis里的数据,才开始请求的。
没有找到怎么拿redis数据,我的生产环境是不能连数据库的

不能连redis数据库,还要在redis里拿数据?

from feapder.

JinxYuan avatar JinxYuan commented on May 17, 2024

不好意思,我表达的不好。
redis里面存的是请求需要的数据,
爬虫启动的时候需要先去redis里面取数据拼url和数据对比,然后在开始请求
生产环境只能连redis,不能练sql server。
我主要想解决的就是,启动的时候能不能拿redis里面存的数据

from feapder.

Boris-code avatar Boris-code commented on May 17, 2024

不好意思,我表达的不好。
redis里面存的是请求需要的数据,
爬虫启动的时候需要先去redis里面取数据拼url和数据对比,然后在开始请求
生产环境只能连redis,不能练sql server。
我主要想解决的就是,启动的时候能不能拿redis里面存的数据

你可以使用框架封装好的RedisDB :http://feapder.com/#/source_code/RedisDB
也可以使用 第三方包: redis
如果你用的是Spider爬虫,任务是start_requests下发的,那框架会自动把任务取回来,然后可以在download_midware中拼接任务

from feapder.

JinxYuan avatar JinxYuan commented on May 17, 2024

ok,大佬🐂🍺。
等大佬的管理平台出来了,开始慢慢迁移。

from feapder.

Boris-code avatar Boris-code commented on May 17, 2024

ok,大佬🐂🍺。
等大佬的管理平台出来了,开始慢慢迁移。

好哒

from feapder.

1295801348 avatar 1295801348 commented on May 17, 2024

自动入库报错

setting配置
MYSQL_IP = "localhost"
MYSQL_PORT = 3306
MYSQL_DB = "qgzz"
MYSQL_USER_NAME = "root"
MYSQL_USER_PASS = "root"

2021-12-17 18:51:04.270 | ERROR | feapder.db.mysqldb:init:77 -
连接数据失败:
ip: None
port: 3306
db: None
user_name: None
user_pass: None
exception: (1045, "Access denied for user 'Administrator'@'localhost' (using password: NO)")
大佬看一下

from feapder.

1295801348 avatar 1295801348 commented on May 17, 2024

error:'MysqlDB' object has no attribute 'connect_pool'
sql: insert ignore into enterprise (code, name, qy_name, region_name) values (%s, %s, %s, %s)

from feapder.

Boris-code avatar Boris-code commented on May 17, 2024

自动入库报错

setting配置

MYSQL_IP = "localhost"
MYSQL_PORT = 3306
MYSQL_DB = "qgzz"
MYSQL_USER_NAME = "root"
MYSQL_USER_PASS = "root"
2021-12-17 18:51:04.270 | ERROR | feapder.db.mysqldb:init:77 - 连接数据失败: ip: None port: 3306 db: None user_name: None user_pass: None exception: (1045, "Access denied for user 'Administrator'@'localhost' (using password: NO)") 大佬看一下

这不很明显你的setting没读到么,可以用main.py运行,或者把项目加到python的搜索路径

from feapder.

houwudi14010 avatar houwudi14010 commented on May 17, 2024

为什么 创建爬虫任务的时候 上下键无法选择对应的模板

from feapder.

Boris-code avatar Boris-code commented on May 17, 2024

为什么 创建爬虫任务的时候 上下键无法选择对应的模板

window的pycharm下这个功能有点问题,你用cmd是可以的

from feapder.

houwudi14010 avatar houwudi14010 commented on May 17, 2024

@Boris-code

为什么 创建爬虫任务的时候 上下键无法选择对应的模板

window的pycharm下这个功能有点问题,你用cmd是可以的

好的 谢谢大佬

from feapder.

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.