Im a python beginner, so please sorry for my question. I try to write a script in python, acutally the script use linux bash, python and php. This script was not written by me, so it is not easy to understand every point. I would do now everything in python, cause i think this is the better way and it should work then on every system, not only on linux.
I need the following line "translated" to python:
curl -s --cookie-jar "$COOKIE_DIR/$SAVE_COOKIE" -b "$COOKIE_DIR/$LOAD_COOKIE" --data "$QUERY_STRING" "$URL" > "$TEMP_FILE""_bak"
I need to save and load the cookies. Also must send a post data. So, how i do this? With "requests" or urllib or mechanize?
Many thx for helping me.