473,396 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to combine PHP script with Python to get a platform working...

So, suppose you have a website using PHP running and everything is fine.

Later on. You want to automate some specific jobs and in order to so that you need to use web scraping techniques. (Say you can only use Python for the web. scr.)

How would you do it?

How would you execute those Python scripts? Through PHP or at specific times from system commands?

How would you save your results? Would you use the database or pass them (somehow) straight to a PHP script?

And last but not least,

How would you "map" and maintain this whole new system of automation?

I'm a begginer dev and I'm just looking for the best possible way to do it.

Thanks in advance everybody !

__________________________________________________ _______
Jul 7 '20 #1
1 2243
dev7060
636 Expert 512MB
Sounds too generic theory to me.
You want to automate some specific jobs and in order to so that you need to use web scraping techniques. (Say you can only use Python for the web. scr.)
How would you do it?
By programming the part that would automate the stuff.
How would you execute those Python scripts? Through PHP or at specific times from system commands?
How would you save your results?
Here.
Would you use the database or pass them (somehow) straight to a PHP script?
Depends on the data you're dealing with.
How would you "map" and maintain this whole new system of automation?
What kind of maintenance are we talking about here?
Jul 7 '20 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Thomas Weholt | last post by:
Hi, I've been using Python on both Windows 2000 and Linux for some time now. On Windows I've used PythonWin as editor, Emacs on Linux. This has been working ok so far. Now as Python will be a...
0
by: David Isaac | last post by:
I'm looking for the Python equivalent of the perl script and module described at http://comments.gmane.org/gmane.mail.imap.uw.c-client/707 Any hope? Thanks, Alan Isaac
3
by: pantagruel | last post by:
The following does not work in firefox: <script defer="defer"> var x=document.getElementsByName("repositoryNamespace") alert(x.length + " elements!")
10
by: =?ISO-8859-1?Q?Fran=E7oise_Debat?= | last post by:
Hello, I wonder if anybody can help. I have an IP blocking script which displays a blank screen if an IP is detected from a list in an external file. The problem is, the script only reads the...
5
by: CoolForU | last post by:
this is my code and i call this code from code behinde file on page load like this useragree.Attributes.Add("onclick", "CheckSelection();") this is working fine with IE but not working with...
9
by: carriere.jonathan | last post by:
Hello all; I wonder if there is a platform written in python. The equivalent of the Netbeans platform http://platform.netbeans.org/ in the Python world. Do you know such a thing? Thanks a...
1
by: pandharinath | last post by:
I want to display fields(row) selected from grid in popup window to textboxes in Opener window. I have written code as follows : Main Opener window protected void Button1_Click(object...
3
by: mark roldan | last post by:
Hi, this is a code for form verification... I added the function results() then the entire script is now not working. Need help... *note that if I omit the results() function, other functional parts...
1
by: ranjeeeet | last post by:
my image upload script is not working while insert script is working
1
by: spartan117 | last post by:
I installed visual python on windows 7 32 bit and when I tried to run an example program, a message appeared which said 'pythonw.exe has stopped working unexpectedly'. I am using visual python with...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.