Skip to content

Commit

Permalink
Socioboard 3.0.55
Browse files Browse the repository at this point in the history
  • Loading branch information
Sathish-Globussoft committed Jan 5, 2019
1 parent 4b605f8 commit da30a6f
Show file tree
Hide file tree
Showing 474 changed files with 60,518 additions and 62,128 deletions.
Binary file modified .vs/Socioboard/v14/.suo
Binary file not shown.
22 changes: 20 additions & 2 deletions .vs/config/applicationhost.config
Expand Up @@ -162,15 +162,16 @@
</site>
<site name="Socioboard" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard" />
<virtualDirectory path="/" physicalPath="E:\Github\Socioboard-Core-3.0\src\Socioboard" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:9821:localhost" />
<binding protocol="https" bindingInformation="*:44317:localhost" />
</bindings>
</site>
<site name="Api.Socioboard" id="3">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Api.Socioboard" />
<virtualDirectory path="/" physicalPath="E:\Github\Socioboard-Core-3.0\src\Api.Socioboard" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:6361:localhost" />
Expand Down Expand Up @@ -208,6 +209,23 @@
<binding protocol="http" bindingInformation="*:9821:localhost" />
</bindings>
</site>
<site name="Api.Socioboard(3)" id="8">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="E:\Github\Socioboard-Core-3.0\src\Api.Socioboard" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:6361:localhost" />
</bindings>
</site>
<site name="Socioboard(3)" id="9">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="E:\Github\Socioboard-Core-3.0\src\Socioboard" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:9821:localhost" />
<binding protocol="https" bindingInformation="*:44317:localhost" />
</bindings>
</site>
<siteDefaults>
<logFile logFormat="W3C" directory="%IIS_USER_HOME%\Logs" />
<traceFailedRequestsLogging directory="%IIS_USER_HOME%\TraceLogFiles" enabled="true" maxLogFileSizeKB="1024" />
Expand Down
17 changes: 9 additions & 8 deletions .vs/restore.dg
@@ -1,8 +1,9 @@
#:E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\SociobordRssDataServices\SociobordRssDataServices.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\SociobordRssDataServices\SociobordRssDataServices.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Domain.Socioboard\Domain.Socioboard.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\SociobordRssDataServices\SociobordRssDataServices.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.Facebook\Socioboard.Facebook.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\SociobordRssDataServices\SociobordRssDataServices.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.Instagram\Socioboard.Instagram.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\SociobordRssDataServices\SociobordRssDataServices.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.LinkedIn\Socioboard.LinkedIn.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\SociobordRssDataServices\SociobordRssDataServices.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.Twitter\Socioboard.Twitter.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\SociobordRssDataServices\SociobordRssDataServices.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.Google\Socioboard.Google.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.Facebook\Socioboard.Facebook.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Domain.Socioboard\Domain.Socioboard.xproj
#:E:\Github\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj
E:\Github\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj|E:\Github\Socioboard-Core-3.0\src\Domain.Socioboard\Domain.Socioboard.xproj
E:\Github\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj|E:\Github\Socioboard-Core-3.0\src\Socioboard.Facebook\Socioboard.Facebook.xproj
E:\Github\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj|E:\Github\Socioboard-Core-3.0\src\Socioboard.Google\Socioboard.Google.xproj
E:\Github\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj|E:\Github\Socioboard-Core-3.0\src\Socioboard.Instagram\Socioboard.Instagram.xproj
E:\Github\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj|E:\Github\Socioboard-Core-3.0\src\Socioboard.LinkedIn\Socioboard.LinkedIn.xproj
E:\Github\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj|E:\Github\Socioboard-Core-3.0\src\Socioboard.Pinterest\Socioboard.Pinterest.xproj
E:\Github\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj|E:\Github\Socioboard-Core-3.0\src\Socioboard.Twitter\Socioboard.Twitter.xproj
E:\Github\Socioboard-Core-3.0\src\Socioboard.Facebook\Socioboard.Facebook.xproj|E:\Github\Socioboard-Core-3.0\src\Domain.Socioboard\Domain.Socioboard.xproj
Expand Up @@ -4,18 +4,16 @@
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>

<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
<PropertyGroup Label="Globals">
<ProjectGuid>35004a68-ab7f-4c8d-9b84-326fd1240985</ProjectGuid>
<RootNamespace>TwitterSearch</RootNamespace>
<RootNamespace>AdvancedContentSearch</RootNamespace>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
</PropertyGroup>

<PropertyGroup>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>
</Project>
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace AdvanceSerachData.Helper
namespace AdvancedContentSearch.Helper
{
public class AppSetting
{
Expand Down
@@ -1,10 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;

namespace AdvanceSerachData.Helper
namespace AdvancedContentSearch.Helper
{
public class SessionFactory
{
Expand Down
@@ -1,13 +1,11 @@

using Domain.Socioboard.Interfaces.Repositories;
using NHibernate.Linq;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using AdvanceSerachData.Helper;
using AdvancedContentSearch.Helper;
using NHibernate.Linq;

namespace AdvanceSerachData.Model
namespace AdvancedContentSearch.Model
{
public class DatabaseRepository
{
Expand Down
@@ -1,14 +1,15 @@
using Domain.Socioboard.Interfaces.Repositories;
using MongoDB.Bson;
using MongoDB.Driver;
using Newtonsoft.Json;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
using AdvancedContentSearch.Helper;
using Domain.Socioboard.Interfaces.Repositories;
using MongoDB.Bson;
using MongoDB.Driver;
using Newtonsoft.Json;

namespace AdvanceSerachData.Model
namespace AdvancedContentSearch.Model
{
public class MongoRepository : IMongoRepository
{
Expand All @@ -21,9 +22,9 @@ public MongoRepository(string CollectionName)
{


MongoClient client = new MongoClient(Helper.AppSetting.MongoDbConnectionString);
MongoClient client = new MongoClient(AppSetting.MongoDbConnectionString);

_db = client.GetDatabase(Helper.AppSetting.MongoDbName);
_db = client.GetDatabase(AppSetting.MongoDbName);

this.collecionName = CollectionName;

Expand Down Expand Up @@ -68,6 +69,14 @@ public void DeleteAll<T>() where T : class, new()

}

public void AddRange<T>(IEnumerable<T> collections) where T : class, new()
{
foreach (T item in collections)
{
Add(item);
}
}

public async Task<IList<T>> Find<T>(Expression<Func<T, bool>> query) where T : class, new()
{
// Return the enumerable of the collection
Expand Down
Expand Up @@ -3,9 +3,9 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using TwitterSearch.TwitterSearch;
using AdvancedContentSearch.SearchLibrary;

namespace TwitterSearch
namespace AdvancedContentSearch
{
public class Program
{
Expand Down Expand Up @@ -84,23 +84,23 @@ static void StartServices(string[] args)
{
while (true)
{
PixabayAdvanceSearch.pixabaysearch();
PixabayAdvanceSearch.PixaBaySearch();
Thread.Sleep(1000 * 60 * 60 * 5);
}
}
if (type == "Imgur Search")
{
while (true)
{
ImgurAdvanceSearch.ingursearch();
ImgurAdvanceSearch.ImgurSearch();
Thread.Sleep(1000 * 60 * 60 * 5);
}
}
if (type == "Giphy Search")
{
while (true)
{
GiphyAdvanceSearch.giphysearch();
GiphyAdvanceSearch.GiphySearch();
Thread.Sleep(1000 * 60 * 60 * 5);
}
}
Expand Down
Expand Up @@ -7,7 +7,7 @@
// associated with an assembly.
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("TwitterSearch")]
[assembly: AssemblyProduct("AdvancedContentSearch")]
[assembly: AssemblyTrademark("")]

// Setting ComVisible to false makes the types in this assembly not visible
Expand Down
@@ -1,18 +1,17 @@
using AdvanceSerachData.Model;
using Domain.Socioboard.Helpers;
using Domain.Socioboard.Models;
using MongoDB.Bson;
using MongoDB.Driver;
using Newtonsoft.Json.Linq;
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using AdvancedContentSearch.Model;
using Domain.Socioboard.Helpers;
using Domain.Socioboard.Models;
using MongoDB.Bson;
using MongoDB.Driver;
using Newtonsoft.Json.Linq;

namespace TwitterSearch.TwitterSearch
namespace AdvancedContentSearch.SearchLibrary
{
public class DailyMotionAdvanceSearch
{
Expand Down Expand Up @@ -81,12 +80,20 @@ private static void fetchdata(Discovery itemdis)
_AdvanceSerachData.videourl = item["url"].ToString();
long fbengagementCount = TwitterAdvanceSearch.fbShareCount(_AdvanceSerachData.videourl);
long redditShare = TwitterAdvanceSearch.redditShareCount(_AdvanceSerachData.videourl);
string datacount = TwitterAdvanceSearch.getdonreachdatafromUrl("https://free.donreach.com/shares?providers=facebook,twitter,google,pinterest,linkedin,reddit&url=" + _AdvanceSerachData.videourl);
JObject shareData = JObject.Parse(datacount);
long pinshare = Convert.ToInt32(shareData["shares"]["pinterest"].ToString());
long linshare = Convert.ToInt32(shareData["shares"]["linkedin"].ToString());
long gplusshare = Convert.ToInt32(shareData["shares"]["google"].ToString());
long twittershare = Convert.ToInt32(shareData["shares"]["twitter"].ToString());

//https://free.donreach.com/shares?providers=facebook,twitter,google,pinterest,linkedin,reddit&url=
//string datacount = TwitterAdvanceSearch.getdonreachdatafromUrl("https://api.donreach.com/shares?providers=facebook,google,twitter&url=" + _AdvanceSerachData.videourl);
//JObject shareData = JObject.Parse(datacount);
//long pinshare = Convert.ToInt32(shareData["shares"]["pinterest"].ToString());
//long linshare = Convert.ToInt32(shareData["shares"]["linkedin"].ToString());
//long gplusshare = Convert.ToInt32(shareData["shares"]["google"].ToString());
//long twittershare = Convert.ToInt32(shareData["shares"]["twitter"].ToString());

long pinshare = TwitterAdvanceSearch.pinShareCount(_AdvanceSerachData.videourl);
long linshare = TwitterAdvanceSearch.linShareCount(_AdvanceSerachData.videourl);
long twittershare = 0;
long gplusshare = TwitterAdvanceSearch.GetPlusOnes(_AdvanceSerachData.videourl);

_AdvanceSerachData.postUrl = _AdvanceSerachData.videourl;
_AdvanceSerachData.pinShareCount = pinshare;
_AdvanceSerachData.gplusShareCount = gplusshare;
Expand Down
@@ -1,17 +1,15 @@
using AdvanceSerachData.Model;
using Domain.Socioboard.Helpers;
using MongoDB.Bson;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

using AdvancedContentSearch.Helper;
using AdvancedContentSearch.Model;
using Domain.Socioboard.Helpers;
using MongoDB.Bson;
using Newtonsoft.Json.Linq;

namespace TwitterSearch
namespace AdvancedContentSearch.SearchLibrary
{
public static class FlickrAdvanceSearch
{
Expand All @@ -33,9 +31,13 @@ public static void flickrSearch()
try
{
_AdvanceSerachData.ImageUrl = item["url_n"].ToString();
_AdvanceSerachData.postUrl= item["url_n"].ToString();
_AdvanceSerachData.postUrl = item["url_n"].ToString();
}
catch
{
_AdvanceSerachData.ImageUrl = item["url_o"].ToString();
_AdvanceSerachData.postUrl = item["url_o"].ToString();
}
catch { }
try
{
_AdvanceSerachData.title = item["title"].ToString();
Expand All @@ -59,19 +61,17 @@ public static void flickrSearch()
try
{
_AdvanceSerachData.postedTime = Domain.Socioboard.Helpers.SBHelper.ConvertToUnixTimestamp(Convert.ToDateTime(item["datetaken"].ToString()));
_AdvanceSerachData.publishDate = item["datetaken"]?.ToString();
}
catch {
_AdvanceSerachData.postedTime = SBHelper.ConvertToUnixTimestamp(DateTime.UtcNow);
_AdvanceSerachData.publishDate = DateTime.Now.ToString(CultureInfo.InvariantCulture);
}
int count = mongoreppo.Counts<Domain.Socioboard.Models.Mongo.AdvanceSerachData>(t => t.postUrl == _AdvanceSerachData.postUrl);
if (count == 0)
{
mongoreppo.Add<Domain.Socioboard.Models.Mongo.AdvanceSerachData>(_AdvanceSerachData);
}
else
{

}
}
}
catch (Exception ex)
Expand All @@ -82,7 +82,7 @@ public static void flickrSearch()
public static string getHtmlfromUrl()
{
string output = string.Empty;
string facebookSearchUrl = "https://api.flickr.com/services/rest/?method=flickr.photos.getRecent&api_key="+ AdvanceSerachData.Helper.AppSetting.flickrapkey + "&extras=date_upload%2C+date_taken%2C+owner_name%2C+icon_server%2C+original_format%2C+last_update%2C+geo%2C+tags%2C+machine_tags%2C+o_dims%2C+views%2C+media%2C+path_alias%2C+url_sq%2C+url_t%2C+url_s%2C+url_q%2C+url_m%2C+url_n%2C+url_z%2C+url_c%2C+url_l%2C+url_o&per_page=100&page=2&format=json&nojsoncallback=1";
string facebookSearchUrl = "https://api.flickr.com/services/rest/?method=flickr.photos.getRecent&api_key="+ AppSetting.flickrapkey + "&extras=date_upload%2C+date_taken%2C+owner_name%2C+icon_server%2C+original_format%2C+last_update%2C+geo%2C+tags%2C+machine_tags%2C+o_dims%2C+views%2C+media%2C+path_alias%2C+url_sq%2C+url_t%2C+url_s%2C+url_q%2C+url_m%2C+url_n%2C+url_z%2C+url_c%2C+url_l%2C+url_o&per_page=100&page=2&format=json&nojsoncallback=1";
var facebooklistpagerequest = (HttpWebRequest)WebRequest.Create(facebookSearchUrl);
facebooklistpagerequest.Method = "GET";
facebooklistpagerequest.Credentials = CredentialCache.DefaultCredentials;
Expand Down

0 comments on commit da30a6f

Please sign in to comment.