problem with search twitter operater

Sotedelan65Sotedelan65 Member Posts: 8 Contributor I
edited December 2018 in Help

Hi. I cant find twitts from the specific date and the result be shown blanked. this is my xml project:

<?xml version="1.0" encoding="UTF-8"?><process version="8.1.000">
<operator activated="true" class="social_media:search_twitter" compatibility="8.1.000" expanded="true" height="68" name="Search Twitter" width="90" x="45" y="85">
<parameter key="connection" value="NewConnection"/>
<parameter key="query" value="customer"/>
<parameter key="result_type" value="recent or popular"/>
<parameter key="limit" value="100"/>
<parameter key="filter_by_geo_location" value="false"/>
<parameter key="radius_unit" value="miles"/>
</operator>
</process>
<?xml version="1.0" encoding="UTF-8"?><process version="8.1.000">
<operator activated="true" class="filter_examples" compatibility="8.1.000" expanded="true" height="103" name="Filter Examples" width="90" x="179" y="85">
<parameter key="parameter_expression" value=""/>
<parameter key="condition_class" value="custom_filters"/>
<parameter key="invert_filter" value="false"/>
<list key="filters_list">
<parameter key="filters_entry_key" value="Created-At.ge.04/28/2017 4:50:15 PM"/>
<parameter key="filters_entry_key" value="Created-At.le.05/17/2017 4:50:31 PM"/>
</list>
<parameter key="filters_logic_and" value="true"/>
<parameter key="filters_check_metadata" value="true"/>
</operator>
</process>
<?xml version="1.0" encoding="UTF-8"?><process version="8.1.000">
<operator activated="true" class="select_attributes" compatibility="8.1.000" expanded="true" height="82" name="Select Attributes" width="90" x="313" y="85">
<parameter key="attribute_filter_type" value="subset"/>
<parameter key="attribute" value=""/>
<parameter key="attributes" value="Created-At|Id|Text|Retweet-Count|Language"/>
<parameter key="use_except_expression" value="false"/>
<parameter key="value_type" value="attribute_value"/>
<parameter key="use_value_type_exception" value="false"/>
<parameter key="except_value_type" value="time"/>
<parameter key="block_type" value="attribute_block"/>
<parameter key="use_block_type_exception" value="false"/>
<parameter key="except_block_type" value="value_matrix_row_start"/>
<parameter key="invert_selection" value="false"/>
<parameter key="include_special_attributes" value="false"/>
</operator>
</process>

can anyone help me?

Tagged:

Answers

  • Thomas_OttThomas_Ott RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,761 Unicorn

    @Sotedelan65 your XML is corrupted. Please following the instructions in the KB article (see link to the right of the screen) on how to share it.

     

    Also, did you search the Community for similar problems with Twitter?

  • Sotedelan65Sotedelan65 Member Posts: 8 Contributor I
    <?xml version="1.0" encoding="UTF-8"?><process version="8.1.000">
    <context>
    <input/>
    <output/>
    <macros/>
    </context>
    <operator activated="true" class="process" compatibility="8.1.000" expanded="true" name="Process">
    <process expanded="true">
    <operator activated="true" class="social_media:search_twitter" compatibility="8.1.000" expanded="true" height="68" name="Search Twitter" width="90" x="179" y="85">
    <parameter key="connection" value="NewConnection"/>
    <parameter key="query" value="ronaldo"/>
    <parameter key="until" value="2017.05.17 18:19:54 +0430"/>
    </operator>
    <operator activated="true" class="filter_examples" compatibility="8.1.000" expanded="true" height="103" name="Filter Examples" width="90" x="313" y="85">
    <list key="filters_list">
    <parameter key="filters_entry_key" value="Created-At.ge.04/28/2017 6:29:51 PM"/>
    <parameter key="filters_entry_key" value="Created-At.le.05/17/2017 6:30:07 PM"/>
    </list>
    </operator>
    <operator activated="true" class="select_attributes" compatibility="8.1.000" expanded="true" height="82" name="Select Attributes" width="90" x="447" y="85">
    <parameter key="attribute_filter_type" value="subset"/>
    <parameter key="attributes" value="Text|Retweet-Count|Language|Created-At"/>
    </operator>
    <connect from_op="Search Twitter" from_port="output" to_op="Filter Examples" to_port="example set input"/>
    <connect from_op="Filter Examples" from_port="unmatched example set" to_op="Select Attributes" to_port="example set input"/>
    <connect from_op="Select Attributes" from_port="example set output" to_port="result 1"/>
    <portSpacing port="source_input 1" spacing="0"/>
    <portSpacing port="sink_result 1" spacing="0"/>
    <portSpacing port="sink_result 2" spacing="0"/>
    </process>
    </operator>
    </process>

    sorry i didnt find my xml panel. i found it and sent to you. yes i did search but i didnt find good reply for this problem. please help me. thank you

  • Thomas_OttThomas_Ott RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,761 Unicorn

    @Sotedelan65 based on the 2017 date you've entered you ran into the Twitter archive wall. Unless you pay for their Firehose connection, you can't go back more than like 7 days from today into the Twitter stream. 

  • Sotedelan65Sotedelan65 Member Posts: 8 Contributor I

    is this means that i can have one search per week??
    but i should to search different hashtag from 2017 for my paper.

  • Thomas_OttThomas_Ott RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,761 Unicorn

    @Sotedelan65 No you can search every minute if you like, it's just the tweets that are in the past can't be retrieved without paying Twitter for it. The way I work around this, to build a training set, is to run my Twitter searches a few times a week and append a dataset. 

  • Sotedelan65Sotedelan65 Member Posts: 8 Contributor I

    so how often can i have historical search without paying to twitter? sorry for series questions. im beginner with rapidminer. thank you.

  • Thomas_OttThomas_Ott RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,761 Unicorn

    @Sotedelan65 I would search the web to see if there are any workarounds but all the ones I've found require some sort of $$$ to get historical Twitter data. Sorry.

  • Sotedelan65Sotedelan65 Member Posts: 8 Contributor I

    how can i pay that? is there any website?

    thanks a lot

  • Thomas_OttThomas_Ott RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,761 Unicorn

    @Sotedelan65

    Try this link.

Sign In or Register to comment.