Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use post to submit data. #342

Open
chunfytseng opened this issue Sep 4, 2018 · 16 comments
Open

How to use post to submit data. #342

chunfytseng opened this issue Sep 4, 2018 · 16 comments

Comments

@chunfytseng
Copy link

I need to submit data using post.

@shalipoto
Copy link

Hi, I saw @jahenkor doing a POST with the crawler. You might ask him how he did that

@chunfytseng
Copy link
Author

thx.

@shalipoto
Copy link

@chunfytseng , when you are happy with the answers, can you close this issue please?

@chunfytseng
Copy link
Author

hi,so far, I still don't know how to get post data, so I need your help.

@jahenkor
Copy link

jahenkor commented Sep 7, 2018

If you need to login to a page, you can submit your post request using AuthInfo (BasicAuth or FormAuth), and receive cookie(s) in which you can persistent across your crawl session. However, if you want to submit and receive post data across multiple pages, I've got no clue.

@jahenkor
Copy link

jahenkor commented Sep 7, 2018

@chunfytseng

@chunfytseng
Copy link
Author

@jahenkor
hi, jahenkor
I have already used AuthInfo to login, and after logging in, I need to submit data using post.

@chunfytseng
Copy link
Author

@Chaiavi

@chunfytseng
Copy link
Author

please!!!

@Chaiavi
Copy link
Contributor

Chaiavi commented Sep 16, 2018 via email

@chunfytseng
Copy link
Author

chunfytseng commented Sep 16, 2018

I don't understand your scenario, what are you trying to do ?

On Sun, Sep 16, 2018 at 6:27 AM chunfytseng @.***> wrote: please!!! — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#342 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/ABrbW4FkW55h35c9W2Pq96QoD7Aol4UOks5ubcUhgaJpZM4WZgK4 .

There are scenes as follows:

  1. Login system
  2. Get information
  3. post submit data to obtain the results.
  4. There are two results in step 3. If the successful task ends, if it fails, continue to step 3..
    The above is my usage scenario.
    Now, I have been logged in successfully, and how to use post to submit data.

@chunfytseng
Copy link
Author

@Chaiavi

@Chaiavi
Copy link
Contributor

Chaiavi commented Sep 17, 2018 via email

@chunfytseng
Copy link
Author

hi, Chaiavi.I have 2 questions.
1.I have solved the problem of logon failure. Now, there is a question of using post to get data.
2.If my crawler task is long-running and crawls data with multi-user logins (I deal with multi-user logins myself), would you recommend that I start multiple PageFetcher instances and give different configs? Or do you have any better advice?
@Chaiavi

@Chaiavi
Copy link
Contributor

Chaiavi commented Sep 20, 2018 via email

@chunfytseng
Copy link
Author

thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants