You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
-
Thanks for the suggestion. I tried to pull the cookies from the first "get" request and use them in the "post" request, but didn't work. What I did find, was that my hunch is correct, I printed the cookies after both the "get" and the "post" and that token is in fact different, so I don't know how to make a login happen? I would need whatever the generated token is during the "post" request.wildcat89– wildcat892020-08-13 14:21:11 +00:00Commented Aug 13, 2020 at 14:21
-
Try making a post request with no data, retrieve the cookies and the token, and try again with a post request with the actual data.DanBrezeanu– DanBrezeanu2020-08-13 15:19:55 +00:00Commented Aug 13, 2020 at 15:19
-
No dice, same issue as before. I print out the token and cookies from the first "post", and pass those into the second "post" where I print out the source code of that response, and the token is still different. I don't suppose there's a way to use Selenium to login, and then pass that new logged in session to requests to carry out the rest of what I want to do? :Pwildcat89– wildcat892020-08-13 17:45:06 +00:00Commented Aug 13, 2020 at 17:45
-
Actually now that I joke about that, I see a number of resources to try, some of which below: stackoverflow.com/questions/42087985/… stackoverflow.com/questions/54398127/… stackoverflow.com/questions/32639014/… Going to try these out first. Thanks!!!!wildcat89– wildcat892020-08-13 17:52:48 +00:00Commented Aug 13, 2020 at 17:52
-
1Selenium should work, considering it is effectively driving a browser. No worries, good luck!DanBrezeanu– DanBrezeanu2020-08-13 20:25:30 +00:00Commented Aug 13, 2020 at 20:25
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-py