M
M
mmaslov2014-10-29 23:20:52
PHP
mmaslov, 2014-10-29 23:20:52

Is it possible to write a bot participating in promotions?

Good day!
There is a website - an online store. Once a day, a promotion is held - find an advertising banner on any page among the goods, click on it and get a discount (the clicker must be authorized on the site).
Task: to write a solution that will automate the process of participation in the action without human actions.
Additional Information

  • The catalog looks like: site.ru/catalog
  • The link to participate in the promotion has a unique key that changes throughout the promotion period.
  • The participation link looks like: http://site.ru/index.php?p=action&accept&uniq_id=key

How to implement it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
throughtheether, 2014-10-30
@mmaslov

Once a day, a promotion is held - find an advertising banner on any page among the goods, click on it and get a discount (the clicker must be authorized on the site).

If a cookie is set during authorization (without any javascript frills), then, in my opinion, it is quite realistic to write such a bot, for example, in python (using the requests and lxml libraries to parse the page). If javascript frills are still present, then you may have to use selenium/phantom.js.

F
FanatPHP, 2014-10-30
@FanatPHP

It is possible not to try to steal what does not belong to you, but to do honest work.
With the same labor costs, you can get a big, and - most importantly - an honest profit.

A
Alexander Taratin, 2014-10-29
@Taraflex

phantomjs.org/examples

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question