Advertisement
Guest User

Untitled

a guest
Mar 28th, 2014
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Given: anchorA tied to urlA
  2.  
  3. posted = False
  4. for article in articles {
  5. if article contains anchor_a {
  6. replace "anchorA" with ("<a href=" + urlA + "\">" + anchorA + "</a>")
  7. do_the_posting
  8. posted = True
  9. break
  10. }
  11. }
  12. if posted == False {
  13. choose_random_article
  14. insert_link_in_a_separate_paragraph
  15. do_the_posting
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement