1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fiverr Search By Country

Discussion in 'General Scripting Chat' started by pokerjk, Nov 3, 2012.

  1. pokerjk

    pokerjk Senior Member

    Joined:
    Dec 26, 2010
    Messages:
    1,167
    Likes Received:
    384
    Occupation:
    Online Marketer
    Location:
    England
    Need some help here black hatters, I need to search Fiverr gigs by country.

    I have tried several things but none have worked, one is turn images off in browser and hope it displays alt text e.g. "United Kingdom" then use the find tool in Firefox to go through those gigs. But the alt text is not displayed when images are turned off.

    Does anyone know of a plugin for searching alt text of images on a page? Or any other solution?

    I know there is a gig scraper but I don't want to just scrape the text rather be able to go through them on the Fiverr site..
     
  2. cgimaster

    cgimaster Power Member

    Joined:
    Jun 30, 2012
    Messages:
    525
    Likes Received:
    311
    Gender:
    Male
    I am afraid your best bet here would be:

    1) try to mail fiverr to implement a country tag where you can see gigs from a given country
    2) make a scraper to go thru all directories and sort gigs by country, then you can search and see gigs offer by country

    You could make it scrap the title + link + user and country and from there u could click on the link if the gig interests you perhaps.

    EDIT: You could try to search on google using the syntax and replacing Country to the country in question:

    Code:
    allintitle:Country site:fiverr.com
    However the results may not be as accurated as you want.
     
    • Thanks Thanks x 1
    Last edited: Nov 6, 2012
  3. pokerjk

    pokerjk Senior Member

    Joined:
    Dec 26, 2010
    Messages:
    1,167
    Likes Received:
    384
    Occupation:
    Online Marketer
    Location:
    England
    Thanks for the suggestions. I contacted them regarding this but don't think they are going to implement it... need an advanced search on fiverr...

    I tried scrape similar which uses xpath but couldn't figure a way in xpath to do the exact scrape I need.

    Google footprints best solution, what worked best for me is the below.

    Code:
    site:fiverr.com collections intitle:"uk"
     
  4. cgimaster

    cgimaster Power Member

    Joined:
    Jun 30, 2012
    Messages:
    525
    Likes Received:
    311
    Gender:
    Male
    well for the xpath if u limit it per gig div on top of the flag name then you have the country name should be fairly easy to separate the gigs per country, however you still need to visit each directory to grab the gigs and sort out.

    Here is some xpath, you don't really need to use all the classes i've set, you can resume to div only but for references of what I did I left the classes I compared to grab the paths:
    Main xPath to grab all gigs from the page
    Code:
    //div[@id[starts-with(.,"gig_id-")]]/div[@class="gig-inner"]
    xPath for the Country of each gig
    Code:
    ./div[@class="gig-info"]/div[@class="gig-info-header"]/div[@class="gig-desc"]/p/span/span
    You would use the first xpath to create a list of all gigs and loop thru all of it and use the second xpath inside the loop to grab the country.

    Then on the 2 xpath you read the attribute title from to get the country.
     
    • Thanks Thanks x 1
    Last edited: Nov 10, 2012
  5. pokerjk

    pokerjk Senior Member

    Joined:
    Dec 26, 2010
    Messages:
    1,167
    Likes Received:
    384
    Occupation:
    Online Marketer
    Location:
    England
    Great thanks the top one is pulling the title but not getting the URL. Also no country tag to filter to?
     
  6. cgimaster

    cgimaster Power Member

    Joined:
    Jun 30, 2012
    Messages:
    525
    Likes Received:
    311
    Gender:
    Male
    Pull it to a database and then you can sort the data by country anyway you like or you can pull it into an array and sort.