[Help] Content uploading with python?

Ramazan

Regular Member
Joined
Aug 19, 2018
Messages
441
Reaction score
310
I have website and wrote with php that website i have forms for content adding. And have like 100+ content list on .txt file. How can i fastly add the website with python? And like on the loop because contents are in same text file.
How can i select them like 1=First content 2=Diffrent content. What kind of library i can use for this thing?
 
If it's not too much work for you, I'd say go with Django.
 
How can i select them like 1=First content 2=Diffrent content. What kind of library i can use for this thing?

Create a CSV file out of your txt file and assigned an identifier for each row.

For example:

identifier1, content line 1,
identifier2, content line 2,
identifier3, content line 3,

And then load the CSV and select the content column based on identifier.

Note that you canuse anything as identifier, even keywords.
 
I'd consider posting them manually with seo optimization and stuff
 
Create an api endpoint for adding content to your website. And you can send POST requests to this api endpoint with using requests library.
 
Back
Top