I’m a scout, although probably more technically proficient than most.
I can’t claim to know how the internal workings of Scoutbook work, but I assume that this is probably something in how the server was configured. I suspect that there is a list of blacklisted user-agents, so I am only asking for
python-requests to be removed from said list. If I had a server that I could host a utility on, I would just adjust the code to use a different HTTP client, but I don’t.
As I said, I tried using Google as an adapter with the following code, but it just gives the error in the next snippet in the console:
<!--Ignore this comment, it just makes the formatter work-->
<iframe src="https://calendar.google.com/calendar/embed?height=600&wkst=1&bgcolor=%23ffffff&ctz=America%2FNew_York&src=c251MHBkbWs2YmhyOXNpZmhscmJzN2pyOTA2YXU5dXNAaW1wb3J0LmNhbGVuZGFyLmdvb2dsZS5jb20&color=%23E67C73&showNav=1" style="border:solid 1px #777" width="800" height="600" frameborder="0" scrolling="no"></iframe>
Refused to display 'https://accounts.google.com/ServiceLogin?service=cl&passive=1209600&osid=1&continue=https://calendar.google.com/calendar/embed?height%3D600%26wkst%3D1%26bgcolor%3D%2523ffffff%26ctz%3DAmerica/New_York%26src%3Dc251MHBkbWs2YmhyOXNpZmhscmJzN2pyOTA2YXU5dXNAaW1wb3J0LmNhbGVuZGFyLmdvb2dsZS5jb20%26color%3D%2523E67C73%26showNav%3D1&followup=https://calendar.google.com/calendar/embed?height%3D600%26wkst%3D1%26bgcolor%3D%2523ffffff%26ctz%3DAmerica/New_York%26src%3Dc251MHBkbWs2YmhyOXNpZmhscmJzN2pyOTA2YXU5dXNAaW1wb3J0LmNhbGVuZGFyLmdvb2dsZS5jb20%26color%3D%2523E67C73%26showNav%3D1&scc=1' in a frame because it set 'X-Frame-Options' to 'DENY'.
If it helps, I’m trying to make this site using Wix since it offers more features than Google Sites.
While I see where you are coming from, I am not directly using the python script. I am trying to use the Open Web Calendar utility, which is open-source and coded in python. I just happened to have the technical know-how needed to look into why it wasn’t working, and I came to the conclusion that it is an issue on Scoutbook’s end.
The utility just acts as an intermediary to convert from ICS to HTML so that web browsers are actually capable of viewing the file. It generates an iframe-compatible link from multiple iCal links. In addition, I feel that the calendar produced by the utility actually ends up looking nicer than what Google lets you embed.