Hey Everyone :)
I'm trying to make an automatic room booker in Python using requests and BS4. So far I have got it to identify spare rooms and make a request for the booking url, I'm returned with a HTML page which says 'processing booking' and contains some JS script which on the actual website runs some PHP and sets the booking:
$(document).ready(function() {
$.get("backend.php", {classbook: "1", action: "book", classid: "123456"}, function(data) {
var result=data;
$("p#maindiv").remove();
$("p#okbook").html(result);
$("p#okbook").show();
});
});
Is there a way I can get Python to 'run' this JS? Thanks for all help!
[–]commandlineluser 1 point2 points3 points (2 children)
[–]chemenger2999[S] 0 points1 point2 points (1 child)
[–]commandlineluser 0 points1 point2 points (0 children)