iMacro programming?

Discussion in 'General Programming Chat' started by OTrap, Jan 26, 2013.

  1. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,303
    Likes Received:
    1,057
    Gender:
    Male
    In what forum would I ask about programming a macro for FireFox's iMacro add-on?
     
    • Thanks Thanks x 1
  2. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    975
    Likes Received:
    682
    Occupation:
    Web/Bot Developer
    Just post your question here. Perhaps I can help! :)
     
  3. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,303
    Likes Received:
    1,057
    Gender:
    Male
    Fair enough. I'm looking for a scraper with a few unique features.

    I'd like to be able to basically tell it to go to a list of pages and it will go to each page and pull data from the same area on each page and extract it to a CSV.

    Is this doable?
     
  4. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    975
    Likes Received:
    682
    Occupation:
    Web/Bot Developer
    I think the following post will get you started on the right track:
    Code:
    http://www.blackhatworld.com/blackhat-seo/black-hat-seo-tools/168539-imacros-loop-problem-multiple-csv-records-multiple-urls.html#post1515454
     
  5. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,303
    Likes Received:
    1,057
    Gender:
    Male
    Ah, that does serve to answer almost all of it.

    A few quick questions from that topic.

    For this part of the macro, do I need to put the CSV in the same folder as the macro?
    Code:
    CMDLINE !DATASOURCE Sample.csv
    And what if the page's info isn't coded into form format, but is instead in the more standard table-row-cell format? Can that still be done?

    Finally, what in the code ensures that each time it is run, it gets run on a new line in the CSV?


    The help is indeed appreciated. You guys are really helpful in this part of the forum.
     
    • Thanks Thanks x 1
  6. Aaric

    Aaric Jr. VIP Jr. VIP

    Joined:
    Mar 7, 2010
    Messages:
    1,885
    Likes Received:
    1,196
    Gender:
    Male
    Occupation:
    Reputation Adder
    Location:
    Vegas
    I can also help you at some point :)