View Single Post
Old 04-24-2016, 07:55 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,349
Quote:
Originally Posted by JosephFM View Post
I know that to save you and me some time I can just use the RSS feed to pull only shemale or gay content from Chaturbate but, can CyberSEO « #1 professional content curation plugin for WordPress since 2006. pull only certain content from the XML API url?

I just want to pull the male and shemale only info for two niche sites I'm working on. Like I said before, I can use the RSS feeds for that, but the API has more info I want to extract.

Shemale models in the CB API are identified like so:

Code:
<gender>s</gender>
And male models like so:

Code:
<gender>m</gender>
With CyberSEO you can do it easily. E.g.:

Put the following text into the "Custom fields" box:

Code:
gender->gender
Now you can manipulate it with your posts. E.g.

The "PHP code <?php .. ?>" box:

Code:
if ($post['custom_fields']['gender'] == 's') {
   $post['categories'][] = 'Shemale';
}
if ($post['custom_fields']['gender'] == 'm') {
   $post['categories'][] = 'Male';
}
if ($post['custom_fields']['gender'] == 'f') {
   $post['categories'][] = 'Female';
}
So every gender will go to its own category (the same method works with tags). Also you can filter them out. E.g.

The "PHP code <?php .. ?>" box:

Code:
if ($post['custom_fields']['gender'] != 'f') {
   $post = false;
}
So only female profiles will be added to your site. Everything else will be ignored.
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote