E
E
etc2013-01-04 09:42:40
PHP
etc, 2013-01-04 09:42:40

Bot for uploading images to other sites

Good day! The task is to make a client-server application where a person will take a photo on iOS, and it needs to be uploaded to a dozen different sites that do not support the API.

Questions arise:

1) How suitable is PHP for this?
2) Are there good bot libraries that make it easy to work with headers (to simplify authorization processes) and DOM.
3) Will it be possible to download in real-time, or will you have to write data to the database, and it will already be processed by the crown as a queue (select an image and upload it to all, say, 10 sites).

Comrades, help! Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
cat_crash, 2013-01-04
@cat_crash

1) Suitable
2) Curl + PhpQuery. In the documentation for the latter there are examples of filling out forms and submitting them
3) IMHO it's better to do a queue.

T
Timur, 2013-01-04
@XAKEPEHOK

1) I think it fits perfectly
2) There is cURL. Here there is an example of use
3) It will turn out. Why not? You may need to change the value of set_time_limit. A dozen different sites - not so many

E
egorinsk, 2013-01-06
@egorinsk

> it needs to be uploaded to a dozen different sites that do not support the API.
This is a bad idea, since these sites will periodically change the layout, add tokens, your application will break, you will finish it and redo it all your life. This is an unprofessional, artisanal solution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question