I understand that by setting xcom_push=True in SimpleHttpOperator I can access the returned data from Xcom from How to access the response from Airflow SimpleHttpOperator GET request. But it is not very clear to me how I can do that. Is that by creating a PythonOperator with a callback and calling xcom_pull inside the callback? Some example code would be great to see.
What I am trying to do is to read stock price data from Google Finance as a CSV data and then insert them into a MySQL database just to learn about Airflow. Initially I thought I can just use two Operators:
SimpleHttpOperator >> MySqlOperator
But now I guess I have to add PythonOperator in the middle?:
SimpleHttpOperator >> PythonOperator >> MySqlOperator
In PythonOperator do I need to pass provide_context set to True to access xcom value?