Fortune Telling Collection - Zodiac Guide - Zodiac Constellation Query Network _ Zodiac Constellation Analysis

Zodiac Constellation Query Network _ Zodiac Constellation Analysis

Zodiac constellation query network

Speaking of constellation interface, as we all know, some people ask if there is any website with constellation api interface. In addition, someone wants to ask the horoscope of the constellation house? Do you know what this is about? How did the horoscope actually come out? Let's take a look at the website with horoscope api interface, hoping to help everyone!

Constellation interface

1, constellation interface: It seems that there is no website with constellation api interface, but haoservice has an interface, which is out of range.

Don't understand?

Don't understand?

Don't understand?

Go to the stars and ask the most accurate horoscope in 202 1 year.

2. Constellation interface: Constellation House Constellation? Aries: March 21~ April 20

Taurus: April 2 1 to May 2 1.

Gemini: May 22nd to June 2nd1

Cancer: June 22 ~ July 22 constellation api.

Leo: July 23rd to August 23rd.

Virgo: August 24th to September 23rd.

Libra: September 24th ~ 65438+1October 23rd.

Scorpio: 65438+1October 24th ~165438+1October 22nd.

Sagittarius:165438+1October 23rd to 65438+February 2nd1

Capricorn: 65438+February 22nd ~ 65438+1October 20th.

Aquarius: 65438+1October 21~ February 19

Pisces: Detailed explanation of the twelve constellations of Tsing Yi in 2022, February 20th-March 20th.

The above is the date query table of 12 constellation. You can know the American horoscope of your own constellation 202 1 through the comparison table.

How did the horoscope come out?

3. Constellation interface: How is the constellation made?

4, constellation interface: constellation and api website, I also want to use, can you introduce me? Tencent constellation Sina constellation Netease constellation fortune-telling house, these can be oh

5. What are the free constellation api interfaces, how to call methods or send them to me! The Star Bar provides free constellation api interfaces, including (daily, weekly, monthly and yearly). ) xml format data. American horoscope of 202 1.

6. Constellation interface: Did you find the constellation api interface? Can you tell me? I am using this API interface.

Easy to pay the world, I hope you can be satisfied!

7. How does API get API data interface and write its own HTML? Constellation API!

8. Constellation interface: Constellation

9. Constellation interface: Is there a constellation API interface? Horoscope API interface, the horoscope of the twelve constellations daily, monthly and annually.

The fortune of Aunt Susan 202 1.

Ask the stars, some constellation api interfaces. Tencent constellation daily fortune query constellation network.

$astroDir=? . /? ;

$astroArray=array(

? Aries? => array (? Aries? ,? 03/2 1-04/ 19? ),

? Taurus? => array (? Taurus? ,? 04/20-05/20? ),

? Gemini? => array (? Gemini? ,? 05/2 1-06/2 1? ),

? Cancer? => array (? Cancer? ,? 06/22-07/22? ),

? Leo? => array (? Leo? ,? 07/23-08/22? ),

? Virgo? => array (? Virgo? ,? 08/23-09/22? ), the Universiade constellation begins in 2022.

? Libra? => array (? Libra? ,? 09/23- 10/23? ), the most prosperous constellation in the next decade.

? Scorpio? => array (? Scorpio? ,? 10/24- 1 1/22? ),

? Sagittarius? => array (? Sagittarius? ,? 1 1/23- 12/2 1? ),

? Capricorn? => array (? Capricorn? ,? 12/22-0 1/ 19? ),

? Aquarius? => array (? Aquarius? ,? 0 1/20-02/ 18? ), the annual horoscope of the United States 202 1.

? Pisces? => array (? Pisces? ,? 02/ 19-03/20? ) functiongenerateeastro () {lucky constellation in 2022.

Global $astroDir, $ astroArray daily horoscope.

$fileLog=$astroDir。 ? . Journal? ;

$log=is_file($fileLog)? JSON _ decode(file _ get _ contents($ file log)):false;

If (! isset($ log-& gt; latest time)| | $ log-& gt; LatestTime & lt date ('Y-m-d '){ Tang Liqi 202 1 horoscope.

foreach($astroArrayas$astro){

preg_match(? / (.? ) (.? ).? Effective date: (. ? ) comprehensive fortune (. ? ) love fortune (. ? ) working conditions (. ? ) financial investment (. ? ) health index (. ? ) negotiation index (. ? ) lucky color (. ? ) lucky number (. ? ) speed matching constellation (. ? )(.? )/isu? , curly (? ,$astro[0]),$ matches);

file_put_contents($astroDir。 $astro[0]。 ? . dat? ,JSON _ encode(array($ matches[ 1],$matches[2],($matches[3]),substr_count($matches[4],' & ltimg ')、substr _ count($matches[5], ' & ltimg ')、substr _ count($matches[6],' & ltimg ')、substr_count($matches[7],'($ matches[3])));

unset($ matches); functiongetAstroByDate($date){

global $ astroArray

foreach($ astro arrayas $ k = & gt; $v){

$value=explode(? -? ,$ v[ 1]); The daily fortune of the twelve constellations queries the fortune of 2020.

if(date($ value[0])& lt; =date($date) amp& amp & date ($ date) < = date($ value[ 1]){

Return $ k;; Return? Capricorn? ; Function ($document){ Tencent horoscope tomorrow's fortune.

$search=array(? @]? & gt。 ? @si? //stripoutjavascript2021year began to walk the ten-year good luck constellation.

? @ & lt[\/\! ]? [^]? & gt@si? //StripoutHTMLtags202 1 A constellation with excellent fortune in the second half of the year.

? @]? & gt。 ? @siU? ,//Stripstyletagsproperly

? @@? ,//strip multi-line comments including CDATA

? @\s+|@? $text=preg_replace($search,? ,$ document);

Return to $ textFunctioncurl($url, $type){ constellation daily query update.

$ ch = curl _ init();

curl_setopt($ch,CURLOPT_URL,$ URL);

curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch,CURLOPT_REFERER,? ; 12 zodiac daily fortune.

curl_setopt($ch,CURLOPT_USERAGENT,? Mozilla/? . mt_rand(2,9)。 ? . 0(windows nt 6. 1; ; rv:? . mt_rand( 10,30)。 ? .0) Gecko/? . mt_rand(,)。 ? Firefox/? . mt_rand( 10,30)。 ? .0? ); Check the daily horoscope.

curl_setopt($ch,CURLOPT_HEADER,0); Detailed explanation of the monthly fortune of the zodiac.

$ data = curl _ exec($ ch);

curl _ close($ ch);

Returns $ data functionisbirth date ($ date) if (empty ($ date) || $ date = =? -00-00? ) zodiac daily fortune query.

Returns false;;

if(preg_match(? /^([0-9]{4})-((? :0? [ 1-9])|(? : 1[0-2]))-((? :0? [ 1-9])|(? :[ 1-2][0-9])|(? :3[0 1]))([0-9]{2}:[0-9]{2}:[0-9]{2})? $/? ,$date,$ birth _ date))return($ birth _ date[ 1]。 ? -? . $birth_date[2]。 ? -? . $ birth _ date[3]& lt; = date(' Y-m-d '); Returns false;; //Sina constellation network horoscope.

var_mp(isBirthDate(? -02-05? )); //Verify whether the birthday is real and valid.

var_mp(getAstroByDate(? 02-05? )); //Displays the name of the date constellation.

generate stro(); //Only 1 constellation data is collected every day.

var _ MP(JSON _ decode(file _ get _ contents($ astro dir。 ? . Journal? ))); //The time when the twelve constellations analyze the contents of the current constellation.

The above is about websites with or without horoscope api interface, and it is about sharing websites with or without horoscope api interface. Read the constellation interface, I hope this will help everyone!